Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

How to stop refresh Google maps in asp.net web page?

$
0
0
for every 40 sec GMap getting refreshing here. i want add new points on GMap without GMap get refresh.
aspx :code: <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick"> </asp:Timer> <div id="map"> <cc1:GMap ID="GMap1" runat="server" /> </div>
 C# cod: protectedvoidTimer1_Tick(object sender,EventArgs e){GMap1.resetMarkers();Subgurim.Controles.GLatLng gLatLng =newSubgurim.Controles.GLatLng(Convert.ToDouble(status.Rows[0][0]),Convert.ToDouble(status.Rows[0][1]));GMap1.setCenter(gLatLng,16,Subgurim.Controles.GMapType.GTypes.Normal);Subgurim.Controles.GMarker oMarker =newSubgurim.Controles.GMarker(gLatLng);GMap1.addGMarker(oMarker);}

Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>