Select to view content in your preferred language

Problem with switching basemap to OpenStreetMap

2223
2
08-03-2011 06:17 AM
andreaskiik
New Contributor
Hello, I would like to make a map of Tenerife with switching basmaps. But i cant manage to see where is the problem in code, it just dont appear at Run, it appears to be loading but nothing will come up. Wolrd imagery map works fine.
PS I am a beginner.

Thank you for answering.

Please look attached code.
Tags (2)
0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor
The button bar uses a zero based index, so your code show be like this (if Avatud Maakaart refers to OpenStreetMap)

        <esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)"
                                         url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
                                         visible="{bb.selectedIndex == 1}"/>
        <esri:OpenStreetMapLayer show="layerShowHandler(event)"
                                         visible="{bb.selectedIndex == 0}"/>

0 Kudos
andreaskiik
New Contributor
And now it works fine 🙂

Thank you so much for answering.
0 Kudos