TypeError arguments: Array[2] get message: function getter() { [native code] } get stack: function getter() { [native code] } set message: function setter() { [native code] } set stack: function setter() { [native code] } type: "non_object_property_load" __proto__: Error
If I add the featureLayer in after adding the dynamicMapServiceLayer it works fine and I get no error. if I try to add the featurelayer first I get a "type error"
//specify the initial extent and coordinate system var initExtent = new esri.geometry.Extent({"xmin":-9270392,"ymin":5247043,"xmax":-9269914,"ymax":5247401,"spatialReference":{"wkid":102100}}); //create map map = new esri.Map("mapDiv",{extent:initExtent});
What am I doing wrong and why will the featureLayer not show up under the dynamicMapServiceLayer?
A Feature layer is a type of Graphics layer, and according the help file, "Graphics layers can be reordered within the group of graphics layers. However, the graphics layer in Map.Graphics is always on top. Also, all graphics layers are always on top of TiledMapServiceLayers and DynamicMapServiceLayers."So you may need to change the way you're adding these layers, and either use two Feature layers, or two Dynamic layers.Steve
Also, all graphics layers are always on top of TiledMapServiceLayers and DynamicMapServiceLayers."So you may need to change the way you're adding these layers, and either use two Feature layers, or two Dynamic layers.
var textSymbol = new esri.symbol.TextSymbol("Here be dragons"); textSymbol.setColor( new dojo.Color([128, 0, 0])); textSymbol.setAlign(esri.symbol.TextSymbol.ALIGN_START); textSymbol.setAngle(15); textSymbol.setFont(font); var pt= new esri.geometry.Point(x,y,map.spatialReference) var gra = new esri.Graphic(pt,textSymbol); map.graphics.add(gra);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.