Package Exports
- terrabrasilis-api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (terrabrasilis-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Instalations
Access NPM: https://www.npmjs.com/package/terrabrasilis-api
npm install --save terrabrasilis-api
Using the module
let overlayers = [{
"title":"",
"name":"",
"host":"",
"legend_color":"",
"workspace":"",
"active":true,
"subdomains":null,
"baselayer":false,
"attribution":"",
"opacity": 0.9
}]In Node.js
var Terrabrasilis = require('terrabrasilis-api');
// just standard config
Terrabrasilis
.map()
.addBaseLayers()
.addOverLayers()
.enableDrawFeatureTool()
.enableLayersControlTool()
.enableScaleControlTool()
.enableGeocodingTool();
// mount a simple map
Terrabrasilis
.map(lat, lon, zoom, 'div to mount the map')
.addBaseLayers()
.addOverLayers(overlayers)
.hideStandardLayerControl(); // disable LayerControl
// mount GeoJson layers (example)
geojsonLayers = [{
"type":"point",
"name":"cities",
"active": true,
"features":["all features points"]
}];
Terrabrasilis
.map()
.addGeoJsonLayers(geojsonLayers);
Release History
- 0.0.1 Initial release
- 0.0.2 release
- ...
- 0.0.20 release
- 0.0.21 release
- 0.0.22 release
- 0.0.23 release [latest]