Gmap3 - Forum

Gmap3 exchange platform

You are not logged in.

Ads
(server costs 27.50€ per month)


#1 2012-09-23 04:57:34

arcee123
Member
Registered: 2012-09-11
Posts: 6

Unique Marker Icons in Ajax call

Hi,
I was hoping for somoene who might know this answer...

I am trying to get unique icons for the markers...

Reference:  http://gmap3.net/forum/viewtopic.php?id=92

I'm trying to get this to work:
http://jsfiddle.net/arcee123/S8kd3/74/

I cannot get the markers to appear in their specialized icons.

I'm guessing it's a format issue on the JSON end, but for some reason it gets encoded/decoded/encrypted or something when it comes back through the JSON AJAX call.

Has anyone been there on this?
THanks much

please help.
Thank you.

Offline

Ads
(server costs 27.50€ per month)


#2 2012-09-24 04:34:34

jbdemonte
Administrator
From: Pourrières, France
Registered: 2011-11-21
Posts: 580

Re: Unique Marker Icons in Ajax call

i can see one custom icon : http://jsfiddle.net/S8kd3/75/

maybe your call fails

Offline

#3 2012-09-24 04:39:09

arcee123
Member
Registered: 2012-09-11
Posts: 6

Re: Unique Marker Icons in Ajax call

Hi, Thanks for responding.

Here's my issue...The JSON in your jsfiddle is given to the GMAP3 call directly.
The one I have in my jsfiddle is taken from an ajax Jquery Call.

$.post('/echo/json/', { json: markersJSON }, function(data) {

Is used to go get a JSON value from another location.
My problem is that JQUERY .post or .json or .ajax calls are not in sync with GMAP3,
and that's where I'm failing.

Any help would be greatly appreciated.

Merci

Offline

#4 2012-09-24 22:36:37

jbdemonte
Administrator
From: Pourrières, France
Registered: 2011-11-21
Posts: 580

Re: Unique Marker Icons in Ajax call

The async from the ajax echange is not a problem, gmap3 does't have any problem with it (and gmap3 is async because google map is)

i think your echange may be the problem, do you have an online test ?

Offline

#5 2012-09-24 22:38:18

arcee123
Member
Registered: 2012-09-11
Posts: 6

Re: Unique Marker Icons in Ajax call

Offline

Board footer

Powered by FluxBB