Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Data Object Manager and Google Maps


Go to End


1496 Views

Avatar
snaip

Community Member, 181 Posts

25 July 2009 at 2:50am

hi

i tried to make google maps with Data Object Manager

each marker has own coordinates Lat, Lng
http://img10.imageshack.us/img10/9846/gmapsu.jpg

i can draw markers but can't draw polyline between them

this is my template code

<% control Testimonials %>
        		var marker = new GMarker(new GLatLng($Lat,$Lng));  
	        	mapa.addOverlay(marker);  

                        var line = new GPolyline(new GLatLng($Lat,$Lng),'#D61A1A',4,0.8);
                        mapa.addOverlay(line);
<% end_control %>