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

Mapperz
50.6k9 gold badges76 silver badges133 bronze badges
asked Sep 1, 2015 at 18:33

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
});
answered Sep 1, 2015 at 18:40
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

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.