map.MapView.BottomRightLatLong.Latitude

Last post 4/23/2009 11:01:16 PM by Chris Pietschmann. 1 replies. << Back to Web.Maps.VE v2.0 General
4/23/2009 1:51:02 PM
mortenma

map.MapView.BottomRightLatLong.Latitude

I'd like to add database loaded pushpins that are within the current visible map area and try to get the map's boundaries this way:

1. Dim minLat As Double = map.MapView.BottomRightLatLong.Latitude
2. Dim maxLat As Double = map.MapView.TopLeftLatLong.Latitude
3. Dim minLng As Double = map.MapView.TopLeftLatLong.Longitude
4. Dim maxLng As Double = map.MapView.BottomRightLatLong.Longitude

However, I'm getting "Object reference not set to an instance of an object." on line 1 and debuggin' reveals that the "MapView" is Nothing.

How do I get the boundaries of the currently visible map area?

4/23/2009 11:01:16 PM
Chris Pietschmann

Re:map.MapView.BottomRightLatLong.Latitude

The "MapView" property is correct for getting the currently visible area of the Map. Are you running this in Birdseye Map Style?? The way that VE implements Birdseye it can cause issues with certain things.