Welcome guest, please Login or Register

EEC.MS - ExpressionEngine add-ons

You are here: HomeForum Home → Fieldtypes → MX Google Map → Thread

   

Help seting up map using: Google Map with Markers List & InfoWindow example code

Rank

Total Posts: 6

Joined 2010-12-22

PM

Hello

I’m using EE2 and mx_google_map_1_1_3
I’ve set up the map using the example code from Google Map with Markers List & InfoWindow

—Could you clarify how the following custom fields get used: address, city, zipcode, state
  Found in the control panel here: CP Home >> Modules >> MX Google Map >> Custom Fields
  I assumed that they were tied into the “slide bar” fields that you can open up when you fill in the map field, but since you are calling {city} in the info window I don’t understand why it isn’t showing up. (see image)

—When I entered the following into the pattern field it was reduced to 50 characters after I clicked on “update”
  {street_address_ln} {locality_ln} {administrative_area_level_1_ln} {country_ln} {postal_code_ln} {natural_feature_ln} {airport_ln} {park_ln} {point_of_interest_ln} {premise _ln} {neighborhood_ln}
  After I updated:
  {street_address_ln} {locality_ln} {administrative_

—The info window image is not coming through as a transparent image, nor is the info window shadow.  I’m sure this isn’t how you intended, but I’m not sure how to troubleshoot it. (see image)

—Is it possible to add script so that users can get directions to the location marked on the map without leaving the page?

Thank you for the clarifications!
Jules

     

Image Attachments

mx-google-map.jpg

Click thumbnail to see full-size image

Rank

Total Posts: 6

Joined 2010-12-22

PM

Bump, bump…. anyone out there?

     
Rank

Total Posts: 6

Joined 2011-02-16

PM

WOW! Still no answer for this? I just installed and I have been struggling to get it to work. Some guidance would be nice. Almost 3 weeks and no answer. That’s no good.

     
Avatar
RankRankRankRank

Total Posts: 702

Joined 2010-07-13

PM

When I entered the following into the pattern field it was reduced to 50 characters after I clicked on “update”
yes, this is bug with Mysql field length. I will release new version in 2 days.

The info window image is not coming through as a transparent image,
this is part of Google Map- my scripts is not effected on bubbles images. Look like you browser don’t support transparent pictures.

I assumed that they were tied into the “slide bar” fields that you can open up when you fill in the map field, but since you are calling {city} in the info window I don’t understand why it isn’t showing up.
Well, I can’t understand by picture too. You need post your template code. Custom map fields works fine - I check it with other MX Google Map user on at least 20 websites at this moment.


DVLPR Where do you have problem?

     
Rank

Total Posts: 6

Joined 2011-02-16

PM

Thanks for the reply.

I installed and followed the screencast (it was a bit fast and I had to rewind and slo-mo about 20 times). I am also using the Google Map with Markers List & InfoWindow example code. From the example I created a global variable from the js and embedded it in the <HEAD></HEAD> tags respectively. I also used the bit of code you provided for displaying the output. I am sure there is something I am doing wrong so I apologise in advance for being a novice on the matter.

http://otpbeta.ehclients.com/locations/test

I see in the js two things and I was wondering if there is something there that I need to modify?

markers: [{exp:channel:entries channel=“markers” dynamic=“off” backspace=“1”}

and

{your_custom_field_name}
{marker_id : {point_id},
    latitude: {latitude},
    longitude: {longitude},
    draggable: false,
    icon: “{icon}”,
  //infowindows template:
    infow:“Lat: {latitude}<br> Long: {longitude}
City: {city}”
},
{/your_custom_field_name}

In addition, this code provides the holder for the output I am guessing?

<div ><div id=“my_full_map”  100%; height: 100%”></div></div> 
<div id=“side_bar”></div>

Please explain the side_bar div?

Also, I don’t see the entry retaining the location on the map. I think I just need some help please.

Thanks for any assistance and again, please forgive my learning curve here. I put my template code in a text file and attached if you need to see my full code. **js is in a global variable**

 

     
Rank

Total Posts: 6

Joined 2011-02-16

PM

Looks like adding an attachment fails. Let me know if you need to see my template code.

     
Avatar
RankRankRankRank

Total Posts: 702

Joined 2010-07-13

PM

do you use your {your_custom_field_name} and channel for template code?

     
Rank

Total Posts: 6

Joined 2011-02-16

PM

I am not sure what you mean. I tried to send a txt file with my template code and it failed. I am going by your sample code exclusively. If there is another code I should be using then I suppose the answer is no.

     
Avatar
RankRankRankRank

Total Posts: 702

Joined 2010-07-13

PM

in example you have tag {your_custom_field_name} which need to replace with you custom filed which was setup like MX Google Map, and you also must indicate the correct channel {exp:channel:entries channel=“markers” dynamic=“off” backspace=“1”}

     
Rank

Total Posts: 6

Joined 2011-02-16

PM

What is the channel=“markers”? I suppose I was not sure what to modify since your code was no bolded in the areas where the modifications were to be made. I will rework it.

I need to modify the sections where modifications are required. I am not sure I know every place where the modifications need to take place. I will take a blind stab and ask more questions as I go.

I appreciate your patience. This is very new for me. Many many thanks.

     
Rank

Total Posts: 6

Joined 2011-02-16

PM

It is hard to use this and get any help. It is disappointing. We are deleting it and going with what we know will work, since we cannot get any assistance.

     
Avatar
RankRankRankRank

Total Posts: 702

Joined 2010-07-13

PM

In examples you just need to replace channel (its your channel where you use MX Google Map) and field name. That’s all. If you replaced it right, don’t have any JS errors, but map don’t displayed – you can send message to me (better with link to your page).

p.s. good example of MX Google Map implementation

     
Rank

Total Posts: 2

Joined 2011-12-11

PM

     
Rank

Total Posts: 2

Joined 2011-12-11

PM

     
Avatar
RankRankRankRank

Total Posts: 702

Joined 2010-07-13

PM

Hello Thomas,
Are you sure that u use MX Google Maps? “gmap” is not MX Google Map tag. MX Google Maps examples

     
Rank

Total Posts: 23

Joined 2011-05-24

PM

Max Lazar - 25 February 2011 08:30 PM

In examples you just need to replace channel (its your channel where you use MX Google Map) and field name. That’s all. If you replaced it right, don’t have any JS errors, but map don’t displayed – you can send message to me (better with link to your page).

p.s. good example of MX Google Map implementation

What example code does this use?  I need to do exactly this.  Display the map and then the list under with all the custom fields.