Help us translate this website and improve this translation and earn free licenses!
Anonymous user  |  Log in  |  Create Account

How to...

Soporte PostBack

The Googlemaps.subgurim.net supports the PostBack at three levels:
  • Map center: the center of the map stays according to its last position before making the PostBack.
  • Zoom: also the zoom level stays the same
  • Map type: in the same way, the map type stays the same



Code.aspx
<cc1:GMap ID="GMap1" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Click Me" />
Code.aspx.cs
GMap1.addControl(new GControl(GControl.preBuilt.LargeMapControl));
GMap1.addControl(new GControl(GControl.preBuilt.MapTypeControl));

GLatLng latlng = new GLatLng(42.12, -1.145);
GMap1.setCenter(latlng, 5, GMapType.GTypes.Hybrid);

GMap1.addGMarker(new GMarker(latlng + new GLatLng(2, 1)));
Powered by Subgurim.NET