I have a map working great on my site as long as i have the markers
hard coded with values in my C# code behind.

I have the following code and works great. But i would like to pass my
values in from the database, is there any good tutorials showing how
to do this? I noticed that one possible way is to use XML file to pass
the values.. but cant find good examples of how to implement that. Any
suggestions would be great.
thanks.

            GoogleMap1.Latitude = 32.8030;
            GoogleMap1.Longitude = -96.7699;
            GoogleMap1.Zoom = 6;

            GoogleMarker bm = new GoogleMarker();
            bm.Latitude = 32.8030;
            bm.Longitude = -96.7699;
            bm.Text = "Dallas, Tx.";

            GoogleMarker bm1 = new GoogleMarker();
            bm1.Latitude = 30.0799;
            bm1.Longitude = -95.4172;
            bm1.Text = "Spring, Tx.";

            GoogleMarker bm2 = new GoogleMarker();
            bm2.Latitude = 29.7629;
            bm2.Longitude = -95.3831;
            bm2.Text = "Houston, Tx.";

            GoogleMap1.Markers.Add(bm);
            GoogleMap1.Markers.Add(bm1);
            GoogleMap1.Markers.Add(bm2);

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to