Adding fields from a database into Info bubble.
Using Hans' Tutorials about using information from a MySql database to
show locations on a map. I've got it working and showing my datapoints
(thanks Hans!).
Tutorial: http://www.map-server.com/googlemaps/tutorial_writing.html
>From the tutorial I'm using
--------------
echo "var marker = createMarker(point, '" .
addslashes($row['filetitle']) . "');\n";
-------------
to show the title of my datapoint. However, I also want to show some
other fields in the Info bubble. I also want to add some text to the
bubble so I'd have something like this where [fieldname] shows the name
of a field to be used).
[filetitle]
Distance: [routedistance]
Climb:[routeclimb]
Overview:[routedescription]
Can I, and if so, how) insert basic html into this info?
Thanks,
Simon
0 Comments:
Yorum Gönder
<< Home