MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getDefaultMap

Function getDefaultMap

packages/decap-cms-widget-map/src/withMapControl.js:23–29  ·  view source on GitHub ↗
(target, featuresLayer)

Source from the content-addressed store, hash-verified

21}
22
23function getDefaultMap(target, featuresLayer) {
24 return new Map({
25 target,
26 layers: [new TileLayer({ source: new OSMSource() }), featuresLayer],
27 view: new View({ center: [0, 0], zoom: 2 }),
28 });
29}
30
31export default function withMapControl({ getFormat, getMap } = {}) {
32 return class MapControl extends React.Component {

Callers 1

componentDidMountMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected