Dear people of stackoverflow,
I have a script that generates a basemap with a layer that I have put on top of it. I am trying to create a dropdown menu in which the user of my HTML5 page can select the layer he wants on the basemap. I have both components: a dropdown list and a function that gives me the basemap + layer of choice. So my question is: What is the best practice to combine these two components resulting in an interactive dropdown menu for a user to select the right layer on top of the basemap. I have found multiple methods of getting there: http://jsfiddle.net/rn3nc/1/ and: http://stackoverflow.com/questions/1343178/change-active-li-when-clicking-a-link-jquery
Dropdown menu:
function for generating a basemap and my layer:
map.on("load", initOperationalLayer("Link to server and data"))I want something like this dropdown menu: https://developers.arcgis.com/javascript/jssamples/dataadapterfeaturelayer.html
The code here is to difficult for me though.
أكثر...
I have a script that generates a basemap with a layer that I have put on top of it. I am trying to create a dropdown menu in which the user of my HTML5 page can select the layer he wants on the basemap. I have both components: a dropdown list and a function that gives me the basemap + layer of choice. So my question is: What is the best practice to combine these two components resulting in an interactive dropdown menu for a user to select the right layer on top of the basemap. I have found multiple methods of getting there: http://jsfiddle.net/rn3nc/1/ and: http://stackoverflow.com/questions/1343178/change-active-li-when-clicking-a-link-jquery
Dropdown menu:
function for generating a basemap and my layer:
map.on("load", initOperationalLayer("Link to server and data"))I want something like this dropdown menu: https://developers.arcgis.com/javascript/jssamples/dataadapterfeaturelayer.html
The code here is to difficult for me though.
أكثر...