POST
|
When I load a map from ArcGIS online and get a reference to the feature layers through the map's graphicLayerIds, the resulting feature layer does not support setting definition expressions. Is there a way to grab those feature layers so that I can set definition expressions? The map in question is below. All the layers are .csv file loaded into the map. Would it work if I loaded the .csv files into arcgis.com directly and then added them to a map? Any suggestions are appreciated. http://www.arcgis.com/home/webmap/viewer.html?webmap=78382d395cad494ea8fba11f0c6f123c
... View more
07-15-2013
05:30 PM
|
0
|
0
|
648
|
POST
|
Thanks a lot evtguy! That was EXACTLY my problem, and a simple copy and paste solution. It makes sense, I guess, the image can't be referenced until the map has loaded and established its spatialReference. Now if ESRI could just fix its search options so I had found that thread in the first place this would all be perfect!
... View more
02-12-2013
09:39 AM
|
0
|
0
|
280
|
POST
|
I am trying to customize one of the ESRI story map pages, and I am encountering a javascript error that is confounding me. I want to use a MapImageLayer to display a picture on top of the map, but the image doesn't show up. The sample can be found here (ignore the lack of captions) http://geographyis.com/MapStories/mapStory/index.html The code to add the layer is below, when it runs I get a javascript error in the MapImageLayer.js file (line 19): TypeError: _25 is null Has anyone successfully implemented this? Any suggestions? Anything? _map = new esri.Map("map"); _map.addLayer(new esri.layers.ArcGISTiledMapServiceLayer(BASEMAP_URL)); var mil = new esri.layers.MapImageLayer({ 'id': 'mtAlbertMap' }); var mi = createMapImage(); _map.addLayer(mil); mil.addImage(mi); ... function createMapImage() { var mi = new esri.layers.MapImage({ 'extent': { 'xmin': -13963916, 'ymin': 6386341, 'xmax': -13942805, 'ymax': 6405759, 'spatialReference': { 'wkid': 3857 } }, 'href': "http://geographyis.com/MapStories/mapStory/images/Mount_Albert_Edward_Trail.jpg" }); return(mi); }
... View more
02-10-2013
06:00 PM
|
0
|
3
|
2276
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|