Posted by gmclelland on May 7, 2009 at 5:53pm
Does any one know of way to produce a map with dynamic text based markers (labeled markers)?
Here is an example of a static map that show what I would like to achieve.
That way people can just look at the map and not have to individually click on each marker to see the contents.
Thanks for your help,
-Glenn
I have used location and gmap modules to produce a mapping site before, but all the markers are all the same.
Comments
Gmap + KML
Have a look at this page:
http://nobmob.com/rides
Do you mean something like the 4 gmaps (which show nodes from 4 different terms)? Click a star to see the node details over the map (without going to a different page). Although I think you're saying you want them to appear on hover which I don't know how to do.
I did this by using the KML module and simply embedding a GMAP inside the page (in an iFrame) that shows the KML feed for each term.
If this doesn't help, hope it maybe gives you some ideas.
Rob
dynamic labeled markers
You can have the marker display marker text on mouseover. In this example, http://www.batgung.com/place-map-search?tid=pillbox, we're showing a map of all places (a CCK-created type of node) that are tagged with a certain term. The text displayed on mouseover is the title of the relevant node.
As of GMap 6.x-1.0, you needed this patch to get the mouseover working: http://drupal.org/node/352553
Thanks @raintonr and
Thanks @raintonr and mrb@drupal.org, but that's not exactly what I was trying to achieve. I need the actual marker to contain text (dynamic text - each marker has a different label).
If you look at the website I included, it shows markers on the map with text inside of them. The markers say SU-092. Those are Specific Use Permits.
Just by looking at the map I can see what each marker represents because each marker is labeled, I don't have to click on any marker. I can even print the map out and hand it to someone.
I realize that website is using an image for their map, but I was wondering if there where any mapping solutions in Drupal that can achieve the same output?
-Glenn
textimage
Ahhh... well, the markers are images and you can specify which image goes on which marker in the KML. This is how I've managed to put the stars on that map (and little camera icons on other KML that site generates).
Anyhow - so you need to utilise the http://drupal.org/project/textimage module and modify your KML (sorry - but think you're going to have to patch the module) to have the icons link to a path on your Drupal site that would automagically build the icon graphic (which would have your text in it).
Hope you know what I mean.
Is there a way to specify a
Is there a way to specify a custom chunk of html code to use as the marker instead of using an image as the marker?
Maybe I could use some html that looks like an image marker, but uses text. Do you follow me? Sort of like the popup bubble you see when you click on a gmap marker, except I don't want users to have to first click on the marker. I just want to show them the contents of the popup bubble when they look at the map. Sort of like having all the markers expanded when the map is viewed.
What do you think?
did anybody solve this? I
did anybody solve this? I would like to have marker titles in my gmap view.
Thank you