kyle969

Zooming to graphics puts elements outside extent

Discussion created by kyle969 on Jul 17, 2012
Latest reply on Jul 17, 2012 by DSwingley-esristaff
I have a map that uses geoprocessing services to place graphics (multipoint and polyline) on the map. The graphics to the East and West will be just outside of the visible map frame. The map is taller than wide. How do I make them appear on the map?

<div id="mapPane" style="width:613px; height:646px;">

//initialize
my_map = new esri.Map("mapPane", {
            extent: initExtent,
                        fitExtent:true,
            lods: MapLib.lods,
            logo: false
        });
// resize after adding graphics
my_map.setExtent(esri.graphicsExtent(EDDM_map.graphics.graphics));

Outcomes