AnsweredAssumed Answered

independent overviewMap

Question asked by natasha85 on Jul 8, 2016
Latest reply on Jul 11, 2016 by rscheitlin

Hi, I need to modify my overviewMap like I did in my Flex Application where I added one different and independent layer (no extent change after I load it first time)

I started editing createOverviewMap function at the line:
json.map = this.map;

to:

map = new Map("map", {extent:

          new Extent({xmin:-959349.2571061972,ymin:5748904.384372205,xmax:962566.5968742102,ymax:5750663.337890111,spatialReference:{wkid:102100}})

        });

        var featureLayer = new FeatureLayer("../arcgis/rest/services/overviewMap/MapServer", { 

          mode: FeatureLayer.MODE_ONDEMAND 

        });

        map.addLayer(featureLayer);

        //json.map = map;

        json.map = this.map;

but the overviewMap doesnt show anything.
maybe why the layer I'm trying to load in overviewMap has a different extent of the map...and it is not contained in the map extent and viceversa.
Thanks,

 

Naty

Outcomes