MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / createMap

Function createMap

src/openlayers/mapping/InitMap.js:120–128  ·  view source on GitHub ↗
(result, mapOptions, viewOptions)

Source from the content-addressed store, hash-verified

118}
119
120function createMap(result, mapOptions, viewOptions) {
121 let view = viewOptionsFromMapJSON(result);
122 var map = new olMap({
123 target: 'map',
124 view: new View({ ...view, ...viewOptions }),
125 ...mapOptions
126 });
127 return map;
128}
129
130function registerProj(epsgCode, wkt, bounds) {
131 const extent = [bounds.left, bounds.bottom, bounds.right, bounds.top];

Callers 1

initMapFunction · 0.70

Calls 1

viewOptionsFromMapJSONFunction · 0.85

Tested by

no test coverage detected