-
I'd like to get an example of 'attachMapLayer'. I tested it with the following code, but the map is not shown.
I'd appreciate it if you could tell me the right way to use it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
An example can be found in MapLayerTool.ts. Perhaps @RBBentley could supply a simplified example. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. 👍 It was my mistake. |
Beta Was this translation helpful? Give feedback.
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.