Background:I am dynamically populating a feature layer. On this feature layer I have set the symbol (as you can see) to a nice little .png image. Everything seems to work fine around the layer except there is a blue cross box around my selection. I have tried setting the feature layers selection symbol to no avail. After reading through the api docs I don't see what else it could be.
Can someone please tell me:
var featureLayer = new esri.layers.FeatureLayer(featureCollection, { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate: template, outFields: ["Name"]});var infoSymbol = new esri.symbol.PictureMarkerSymbol({ "angle": 0, "xoffset": 0, "yoffset": 12, "type": "esriPMS", "url": "/Images/map-marker.png", "contentType": "image/png", "width": 24, "height": 24});var renderer = new esri.renderer.SimpleRenderer(infoSymbol);featureLayer.setRenderer(renderer);var selectionSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.5]) );featureLayer.setSelectionSymbol(selectionSymbol);
أكثر...
Can someone please tell me:
- what this symbol is
- where it is coming from
- and possibly how to remove it
var featureLayer = new esri.layers.FeatureLayer(featureCollection, { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate: template, outFields: ["Name"]});var infoSymbol = new esri.symbol.PictureMarkerSymbol({ "angle": 0, "xoffset": 0, "yoffset": 12, "type": "esriPMS", "url": "/Images/map-marker.png", "contentType": "image/png", "width": 24, "height": 24});var renderer = new esri.renderer.SimpleRenderer(infoSymbol);featureLayer.setRenderer(renderer);var selectionSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.5]) );featureLayer.setSelectionSymbol(selectionSymbol);
أكثر...