IsObliqueAvailable()

Last post 7/24/2009 12:10:03 AM by Chris Pietschmann. 1 replies. << Back to Web.Maps.VE v2.0 General
7/7/2009 8:54:20 PM
Medwyn

IsObliqueAvailable()

I'm wanting to set the style of the map from the backend code which I can do by using:

divMapHolder.MapStyle = MapStyle.Road;

The problem occurs when I want to set the mapstyle to birdseye as if birdseye isn't available at that lat/lon I get a browser error.

Ideally I think I want to call IsObliqueAvailable() before trying to set the birdseye view and set it to something different if birdseye wasn't available, but this function doesn't appear to be exported in Simplovation.

Is there anything I can do to get around this error?

Cheers.

Medwyn.

7/24/2009 12:10:03 AM
Chris Pietschmann

Re:IsObliqueAvailable()

You can use the OnObliqueEnter and OnObliqueLeave events to determine when Birdseye / Oblique map style is available.