Inserting google map in a .net application

Aug 11, 2007 at 5:50 AM
hi
Can somebody guide me how to insert google map in my asp.net with C# application and highlight locations on the map
and
on those points add thumbnails and links to videos and pictures in my project
Or
Is there any opensource code available for doing this


regards
Harry
Jun 30, 2008 at 6:05 PM


forumsharry wrote:
hi
Can somebody guide me how to insert google map in my asp.net with C# application and highlight locations on the map
and
on those points add thumbnails and links to videos and pictures in my project
Or
Is there any opensource code available for doing this


regards
Harry


go to codeplex and download artem google map control. after download you get dll. right click on toolbox. choose item option. after this browse this dll and click ok. control og google map is added automatically. then just drag and drop
Aug 25, 2011 at 8:17 PM

Hi,

To highlight a polygon , add this client-side javascript:

 function __setLocation(overlay, point) {
          if (overlay.color == "#33ff00")

{

 overlay.color = overlay.fill = "Green";

          overlay.redraw(overlay, null);         

}         

else {

 

overlay.color = overlay.fill = "#33ff00";

 overlay.redraw(overlay, null);         

}             

}      

Change your map setting like this:

   <cc1:GoogleMap ID="GoogleMap1" runat="server" Width="600" Height="400" EnableScrollWheelZoom="true"     BorderStyle="Solid" BorderColor="#999999" OnClientClick="__setLocation" BorderWidth="1">    </cc1:GoogleMap>

This works, 

I am trying to get the way of knowing which polygons were selected by the user. If you have an idea, please post it.