|
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. |
Replies: 3 comments 1 reply
|
An example can be found in MapLayerTool.ts. Perhaps @RBBentley could supply a simplified example. |
|
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. |
|
Thank you for your answer. 👍 It was my mistake. |
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.