question

teshayat avatar image
0 Votes"
teshayat asked AshokPeddakotla-MSFT commented

Azure Maps

I am running Azure Maps in Angular.

When I move left the map, at some point it shows blank,

How can I rerender the map? Once the tile has finished?

10429-screenshot-1.jpg


azure-maps
screenshot-1.jpg (53.3 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@HasinEshayat-7121 Are you following any documentation? Which browser are you using? Please provide more details to understand your issue better.

0 Votes 0 ·
teshayat avatar image teshayat AshokPeddakotla-MSFT ·

Got it fixed.

1 Vote 1 ·

Can you share the solution? It would be great if you can summarize the steps and post as a new response and accept as answer.

0 Votes 0 ·
teshayat avatar image teshayat AshokPeddakotla-MSFT ·

Hi there,

I'm using Microsoft's new Edge. and Angular. I using azure's documentation.

In html

 <div id=mapContainer></div>
 <link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />

  this.map = new atlas.Map('mapContainer', {
       center: [-73.985708, 40.75773],
       zoom: 4,
       showLogo: false,
       renderWorldCopies: false,
       language: 'en-AU',
       authOptions: {
         authType: atlas.AuthenticationType.subscriptionKey,
         subscriptionKey: this.key
       },
       enableAccessibility: true
     });

These are the initilization code






0 Votes 0 ·

1 Answer

teshayat avatar image
1 Vote"
teshayat answered AshokPeddakotla-MSFT commented

The Issue was, I have added renderWorldCopies as false, which caused the map to render only once. When the map got out of view, it showed black.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Please accept this as answer so that it will be beneficial to the other community members with similar issues.

0 Votes 0 ·