JSPM

  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q50944F
  • License GPL-3.0

API to build map and enable tools to use in Terrabrasilis webmap application

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

Travis CI: Build Status

  • 0.0.1 Initial release
  • 0.0.2 release
  • ...
  • 0.0.22 release
  • 0.0.23 release
  • 0.0.24 release
  • 0.0.25 release
  • 0.0.26 release [latest]