Select to view content in your preferred language

Overviewmap Maximize

542
3
03-07-2012 11:18 AM
JatinPatel
Regular Contributor
I created an overviewlayer using the following guide:
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/overviewmap.htm

Everything works fine, but the maximize button will not show up. Do I need to add functionality to handle the event or does it automatically handle it?

Here is my code:
overviewMap = new esri.dijit.OverviewMap({ map: _map, expandFactor: 1, maximizeButton:true}, dojo.byId("overviewDiv"));
overviewMap.startup();

<div id="ovWin" class="shadow" style="position:absolute; right:3px; bottom:3px; z-Index:998; width:150px;height:150px; "> 
    <div id="overviewDiv" style="width:100%;height:100%;"></div> 
</div>
0 Kudos
3 Replies
KellyHutchins
Esri Notable Contributor
If I modify the Overview Map sample from the help to set maximizeButton to true the maximize button appears for me. There is a bit of flakiness (in some browsers) when you first click the maximize button that will be fixed at the next release. But the button should appear:

          //add the overview map 
          var overviewMapDijit = new esri.dijit.OverviewMap({
            map: map,
            visible:false,
            maximizeButton:true
          });
          overviewMapDijit.startup();

0 Kudos
JatinPatel
Regular Contributor
Kelly,
It is very weird. It does not appear on mine and I tried FF/IE/Chrome.
Do i need to include anything else beside :   dojo.require("esri.dijit.OverviewMap"); for the button.

Only other thing I can think of is z-index. I have the overviewDiv set at z-index =998

Also, i see you have created it a little different. Mine is outside the main map (added , dojo.byId("overviewDiv")); at the end)
Can you please check if it works for you if you create it outside too?
Thanks
JGP
0 Kudos
SusanaMirón_Lucio
Esri Contributor
I see that this thread was wrotten in 2012, but i had the same issue and if someone is helpful it, my issue was resolved when I added the height and width parameter to instantiate the OverviewMap.


Regards
0 Kudos