Select to view content in your preferred language

zoom in arcgis-map component

217
3
Jump to solution
3 weeks ago
LefterisKoumis
Frequent Contributor

 

 <arcgis-map basemap="streets-navigation-vector" id="my-map" center="-120.45, 37.183" zoom="6">
            <arcgis-search position="top-left"></arcgis-search>
            <arcgis-zoom></arcgis-zoom>
        </arcgis-map>

I don't understand why the zoom is not working. Do I need to use item-id? I don't use  a webmap.

0 Kudos
1 Solution

Accepted Solutions
Sage_Wall
Esri Regular Contributor

 `itemId` is not required for Zoom to work.

What issue are you having @LefterisKoumis , when I copy the snippet above into a codepen it seems to be working fine?


https://codepen.io/sagewall/pen/ByNPmrQ?editors=1010

View solution in original post

0 Kudos
3 Replies
Sage_Wall
Esri Regular Contributor

 `itemId` is not required for Zoom to work.

What issue are you having @LefterisKoumis , when I copy the snippet above into a codepen it seems to be working fine?


https://codepen.io/sagewall/pen/ByNPmrQ?editors=1010

0 Kudos
LefterisKoumis
Frequent Contributor

Sorry, it must be the stupidest posting I ever did. Apparently, didn't clear the cache. Thank you for the reply.

Sage_Wall
Esri Regular Contributor

Happens to the best of us from time to time 😀

0 Kudos