Change MapType? Get Bounds?

Feb 14, 2008 at 9:52 AM
how to change MapType and how to get Map Bounds (max and min points)?
Coordinator
Feb 14, 2008 at 11:24 AM
Hi,
GoogleMap control has a property View which you can set to:
  • Normal
  • Satellite
  • Hybrid
  • Physical
  • MoonElevation
  • MoonVisible
  • MarsElevation
  • MarsVisible
  • MarsInfrared
  • SkyVisible
Bounds are not fetched (yet :) ) out of google map.
Regards
Feb 20, 2008 at 12:21 PM
Hi Sarwan,

Sarwan wrote:
how to change MapType and how to get Map Bounds (max and min points)?

you can use a workaround that worked for me. See http://www.codeplex.com/googlemap/Thread/View.aspx?ThreadId=22488 for details on how to access the GMap2 object on the client side directly and then you can just do (in JavaScript):
var bounds = <%= artemGoogleMap.ClientID %>_Map._gmap.getBounds();
var ne = bounds.getNorthEast();
var sw = bounds.getSouthWest();

For server-side access to these properties we still have to wait though, I guess. Maybe this helps.
Kind regards,
Oliver
Feb 27, 2008 at 9:50 AM
*----------------------------------------
velio
Bounds are not fetched (yet :) )
----------------------------------------*
can you add the Bounds property?
Apr 19, 2011 at 2:57 AM

Hi,

How can I create a new MapType?

I need to hide some elements as labels, roads, etc. Its that possible?

Thank you.