Make new behavior overridable; update docs and examples

This commit is contained in:
ahocevar
2018-10-14 12:10:40 +02:00
parent af4e5ca7cf
commit 2768884044
30 changed files with 43 additions and 167 deletions

View File

@@ -17,11 +17,7 @@ const mousePositionControl = new MousePosition({
});
const map = new Map({
controls: defaultControls({
attributionOptions: {
collapsible: false
}
}).extend([mousePositionControl]),
controls: defaultControls().extend([mousePositionControl]),
layers: [
new TileLayer({
source: new OSM()