1

I am adding an overview Map to the main map by this way

  var overviewMap = new OverviewMap({
          map: map,
          visible: true
        });
        overviewMap.startup();

which the overview map is poping up at Top-Right

enter image description here

Can you please let me know how I can I re-position it to left-bottom

3

Use the "attachTo" property in the constructor. You have your choice of"top-right","bottom-right","bottom-left" and "top-left". The default value is "top-right"

 var overviewMap = new OverviewMap({
     map: map,
     attachTo: "bottom-left",
     visible: true
});
  • Thanks a lot kenbuja, can you also let me know if it is possible to set the size of the overview map as well? – Behseini Sep 1 '15 at 18:43
  • Thanks I got it from the documentation which you linked – Behseini Sep 1 '15 at 18:45
  • Don't forget to mark the question as answered – kenbuja Sep 1 '15 at 18:59
  • sure, I just had to wait to 10 Mins – Behseini Sep 1 '15 at 19:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.