Skip to content

I'd like to get an example of 'attachMapLayer'. #200

Answered by RBBentley
Myzik-Dev asked this question in Q&A
Discussion options

You must be logged in to vote

If you only want to turn on Bing map display you could do something like Viewport.changeBackgroundMapProps({}); I believe the default properties are bing maps with hybrid display. Or more explicitly you could use Viewport.changeBackgroundMapProps({providerName: "BingProvider", providerData: { mapType: 2 }}); - mapType 2 would be the aerial display mode.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pmconne
Comment options

Answer selected by RBBentley
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants