function initMap(){ esriConfig.defaults.map.height = 600; esriConfig.defaults.map.width = 623; var myMap = new esri.Map('map'); var urlAerial = "http://gisweb.miamidade.gov/ArcGIS/rest/services/MapCache/MDCImagery/MapServer"; var tiled = new esri.layers.ArcGISTiledMapServiceLayer(urlAerial); myMap.addLayer(tiled); $rootScope.graphicLayer = new esri.layers.GraphicsLayer(); myMap.addLayer($rootScope.graphicLayer); $rootScope.map = myMap; } dojo.ready(initMap);
function(){ $scope.map.resize(); $scope.map.reposition(); ... var gra = new esri.Graphic(geometry, symbol2, '', ''); $scope.map.graphics.add(gra); $scope.map.centerAndZoom(geometry, 8); }
var myMap = new esri.Map('map');
//at the end of the loading script //a short timeout just to give basemap tiles a couple seconds to finish loading setTimeout(function() { domConstruct.destroy('loading'); }, 2000);
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.