How to Update Basemap of ArcGIS API for JS Using jQuery

المشرف العام

Administrator
طاقم الإدارة
Can some one please let me know if it is possible to update ArcGIS API Basemap by using jQuery

Here is what I have tried

Imagery Topographic With Lable var map; var basemap = ['topo','streets','imagarey'] require([ "esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "dojo/domReady!" ], function(Map) { map = new Map("mapDiv", { center: [-126.687482, 54.793577], zoom: 5, basemap: basemap[0] }); $("#base-map-options").on("change", function () { basemap[$('option:selected').val()]; });});as you can see I am trying to update selected index in basemap[] through

$("#base-map-options").on("change", function () { basemap[$('option:selected').val()]; }); but I don't know how to bind this to basemap property of the map object?



أكثر...
 
أعلى