Add markers from the code behind.

Aug 5, 2010 at 9:08 AM
Hi Guys. Do any of you guys have any vb examples for adding markers from the code behind. Cheers! Jase
Aug 12, 2010 at 3:37 PM
I only have an example of loading one marker. Would that work?
Aug 13, 2010 at 3:12 PM

You need to add to the top of your CS file

using Artem.Web.UI.Controls;

 

Then add the following code: 

 

GoogleMarker bm = new GoogleMarker("114 Willits Street Birmingham, MI 48009");
bm.Text = "Google Detroit";
GoogleMap1.Markers.Add(bm);

"GoogleMap1" would be the name of your map control. 
Aug 17, 2010 at 3:34 PM
Coolio, Thanks guys!!!!