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

Type of Map

The type of map is decided by the mapType property.
There are four types:
  • Normal: GMapType.GTypes.Normal (by default)
  • Satellite: GMapType.GTypes.Satellite
  • Hybrid: GMapType.GTypes.Hybrid
  • Physical: GMapType.GTypes.Hybrid
Wealso have two other types of map made with MapMaker Google, and onlyapply to a specific list of countries (usually countries where there islittle support from Google):
  • MapMaker_Normal: GMapType.GTypes.MapMaker_Normal.
  • MapMaker_Hybrid: GMapType.GTypes.MapMaker_Hybrid.
On the other hand, we can enable the property enableRotation, which will enable aerial perspective imagery for satellite and hybrid maptypes.




Code.aspx
<cc1:GMap ID="GMap1" runat="server" />
Code.aspx.cs
GMap1.setCenter(new GLatLng(37.339085, -121.8914807), 18);
GMap1.mapType = GMapType.GTypes.Hybrid;
GMap1.addMapType(GMapType.GTypes.Physical);
GMap1.addControl(new GControl(GControl.preBuilt.MapTypeControl));
GMap1.enableRotation = true;
Powered by Subgurim.NET