|
mortenma
|
|
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?
|
|
|
|
Chris Pietschmann
|
|
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.
|
|
|