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

1 Answer 1

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
});
4
  • Thanks a lot kenbuja, can you also let me know if it is possible to set the size of the overview map as well? Commented Sep 1, 2015 at 18:43
  • Thanks I got it from the documentation which you linked Commented Sep 1, 2015 at 18:45
  • Don't forget to mark the question as answered Commented Sep 1, 2015 at 18:59
  • sure, I just had to wait to 10 Mins Commented Sep 1, 2015 at 19:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.