Gmap3 - Forum

Gmap3 exchange platform

You are not logged in.

Ads
(server costs 27.50€ per month)


#1 2012-10-17 14:26:00

mbbl
Member
Registered: 2012-10-17
Posts: 5

Multiple markers same lat/long

I am really happy with the clustering, but is there a way to somehow show info on, let's say 2 markers which are on exactly the same lat/long?

If you look at the example (mcdonalds/paris), in the center of Paris the problem shows.

Offline

Ads
(server costs 27.50€ per month)


#2 2012-10-17 15:33:07

bobbeamon
Member
Registered: 2012-10-16
Posts: 3

Re: Multiple markers same lat/long

Is that what u are looking for?

cluster:{
events:{
click: function(cluster, event, data){
$(this).gmap3(
{ action:'clear', name:'infowindow'},
{ action:'addInfoWindow',
latLng: data.latLng,
content:  getInfoWindowCluster(data.latLng),
offset: {
x:-46,
y:-70
}
}
);
 
var map = $(this).gmap3('get'),
infowindow = $(this).gmap3({action:'get', name:'infowindow'});
google.maps.event.addListener(map, 'zoom_changed', function() { infowindow.close() });
}
}},

Taken from my current open post (any help appreciated)

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

Offline

#3 2012-10-17 16:08:16

mbbl
Member
Registered: 2012-10-17
Posts: 5

Re: Multiple markers same lat/long

Thank's
No I don't think so.
But I got figured out one part of the problem (well new problem):
it's the radius or amount of markers within that radius that should show a cluster icon.

Bottom line I would like a info window to show when you can't zoom any further (but get a cluster icon showing eg 2) to see the info of the markers behind that cluster (also when they've got exactly the same lat/long)


Any help once more greatly appreciated.

Offline

#4 2012-10-17 16:41:30

bobbeamon
Member
Registered: 2012-10-16
Posts: 3

Re: Multiple markers same lat/long

ok now I understand your problem.

sorry can't help you, I solve this problem without cluster. I grouped my sql query and I return a sum of the amount of makers for a lat/lng

Last edited by bobbeamon (2012-10-17 16:41:40)

Offline

#5 2012-10-22 14:36:04

mbbl
Member
Registered: 2012-10-17
Posts: 5

Re: Multiple markers same lat/long

Ok, maybe I could rephrase: is it possible to show info of the markers that are clustered, when clicking on the cluster icon.
A little like shown here: http://jsfiddle.net/ErYub/
Thank's again in advance!

Offline

#6 2012-10-23 04:55:47

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

Re: Multiple markers same lat/long

Have you tested the click event on cluster ?
The clusters are attached with their data

Offline

#7 2012-10-29 14:34:43

mbbl
Member
Registered: 2012-10-17
Posts: 5

Re: Multiple markers same lat/long

No, will do that. I'm not exactly a jquery expert so will have on of our experts take a look at it and let you know if and how we fixed it!

Offline

#8 2012-10-30 06:45:45

RhysZak
Member
Registered: 2012-10-30
Posts: 1
Website

Re: Multiple markers same lat/long

Now been solved? How to solve it?

Offline

#9 2012-10-30 10:05:23

mbbl
Member
Registered: 2012-10-17
Posts: 5

Re: Multiple markers same lat/long

No it hasn't, I won't be able to fix this myself but have to have some experts take a look at it. This might take a while.
But again: as soon as I have fixed it, I will tell how.

Offline

Board footer

Powered by FluxBB