Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@planet/maps

Package Overview
Dependencies
Maintainers
14
Versions
596
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@planet/maps

Custom builds of OpenLayers 3

  • 7.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
693
increased by10.17%
Maintainers
14
Weekly downloads
 
Created
Source

Planet Maps

Custom builds of OpenLayers 3.

Use

Install planet-maps as a dependency with npm.

npm install planet-maps --save-dev

Use Browserify to require OpenLayers 3.

// see below for a list of custom builds
var ol = require('@planet/maps/common');

You'll also want to import the stylesheet:

/* Make sure to use the path to your node_modules */
@import url('./node_modules/planet-maps/ol.css');

Builds

common

var ol = require('@planet/maps/common');

Support for everything required by Scenes, Mosaics, Labs, etc. See config/common.json for details on what is included.

explorer

var ol = require('@planet/maps/explorer');

Support for everything required by Planet Explorer. See config/explorer.json for details on what is included.

debug

This is a debug build that should never be used in production.

Publishing a new release

Edit the config files to include what you need exported and commit the changes. Then you'll want to bump the version number in package.json, commit this change, and create a tag. This should be done with the npm version command (choose one of patch, minor, or major). E.g.

npm version minor

Next you'll want to push your commits (and the tag) and publish your changes to npmjs.org.

git push --tags origin master
npm publish

Before publishing, the prepublish step will run make. This will create builds that are not tracked by git but that are pushed to the npmjs.org repository for use by consuming packages.

Note the new version number in package.json and use it in packages that depend on this one.

Keywords

FAQs

Package last updated on 29 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc