Re: Geochart multiple markers in the same city

498 views
Skip to first unread message

asgallant

unread,
Dec 27, 2012, 12:12:31 PM12/27/12
to google-visua...@googlegroups.com
You could use lat/long coordinates for the marker locations, which would allow you to cluster multiple markers, but there is nothing in the API that will do this for you, so you'll have to manually set lat/long coordinates for every employee.

On Thursday, December 27, 2012 11:11:23 AM UTC-5, Fede wrote:
Hi Everyone,

I'm trying to use the Geochart to display where each of our employees are located but I have more than one employee in each office so I need to display like a cluster of markers since if I create two markers for the same city only the last one is showed.

Here is an example of what I'm trying to achieve: http://jsfiddle.net/Danath/dXEdz/4/

Thanks in advance!

Fede

Fede

unread,
Dec 27, 2012, 12:31:18 PM12/27/12
to google-visua...@googlegroups.com
Hi asgallant,

Thanks for your reply, I thought of that but I have the same problem since employees that work in the same office have the same latitude and longitude coordinates.

Thanks

asgallant

unread,
Dec 27, 2012, 8:25:33 PM12/27/12
to google-visua...@googlegroups.com
You could offset the lat/longs a bit to get separation of the markers.

asgallant

unread,
Dec 27, 2012, 8:26:44 PM12/27/12
to google-visua...@googlegroups.com
Perhaps your best bet is to use a single marker per office, which give the number of employees or a list of all the employees at the office.

Fede

unread,
Dec 27, 2012, 8:28:20 PM12/27/12
to google-visua...@googlegroups.com
Thanks again asgallant!

I decided to do exactly that, create a single marker per office and attach a modal to the click event of the marker to show the employees details.

Carlos Moreira

unread,
Dec 28, 2012, 9:41:25 AM12/28/12
to google-visua...@googlegroups.com
When I have this problem, i usually set a small offset for the lat/lon so when the zoom feature kicks in, it show's the markers separated.

Fede, a bit offtopic, but what modal script did you use? i'm looking for an easy one to use in some of my scripts..
cheers!

Federico Vezzoso

unread,
Dec 31, 2012, 6:06:50 PM12/31/12
to google-visua...@googlegroups.com

Hi Carlos,

In this project we are using Twitter's Boostrap, is very easy to use but limited on some aspects, make sure it suits your needs.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/UtzGMpN7oXgJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Carlos Moreira

unread,
Jan 3, 2013, 8:25:29 PM1/3/13
to google-visua...@googlegroups.com
Thanks for the tip!
cheers
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages