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
Can you please let me know how I can I re-position it to left-bottom
asked Sep 1, 2015 at 18:33
1 Answer 1
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
-
Thanks a lot kenbuja, can you also let me know if it is possible to set the size of the overview map as well?Suffii– Suffii2015年09月01日 18:43:17 +00:00Commented Sep 1, 2015 at 18:43
-
Thanks I got it from the documentation which you linkedSuffii– Suffii2015年09月01日 18:45:12 +00:00Commented Sep 1, 2015 at 18:45
-
Don't forget to mark the question as answeredkenbuja– kenbuja2015年09月01日 18:59:58 +00:00Commented Sep 1, 2015 at 18:59
-
sure, I just had to wait to 10 MinsSuffii– Suffii2015年09月01日 19:07:00 +00:00Commented Sep 1, 2015 at 19:07
lang-js