Remove zoom controls
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
This commit is contained in:
parent
19522256d7
commit
283b73e0e6
@ -1,6 +1,7 @@
|
||||
import { modifier } from 'ember-modifier';
|
||||
import 'ol/ol.css';
|
||||
import Map from 'ol/Map.js';
|
||||
import { defaults as defaultControls } from 'ol/control.js';
|
||||
import View from 'ol/View.js';
|
||||
import { fromLonLat } from 'ol/proj.js';
|
||||
import LayerGroup from 'ol/layer/Group.js';
|
||||
@ -16,6 +17,7 @@ const setupMap = modifier((element) => {
|
||||
mapInstance = new Map({
|
||||
target: element,
|
||||
layers: [openfreemap],
|
||||
controls: defaultControls({ zoom: false }),
|
||||
view: new View({
|
||||
center: fromLonLat([99.05738, 7.56087]),
|
||||
zoom: 12.5,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user