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

gbif-map

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gbif-map

A Leaflet based Web Component for displaying occurances of a GBIF entry on a map.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

<gbif-map>

A Leaflet based Web Component for displaying occurances of a GBIF entry on a map.

Note: Uses ResizeObserver. Polyfill it on your end.

API

Inputs

AttributeDescription
center-latitudeLatitude value for the center point. Float32.
center-longitudeLongitude value for the center point. Float32.
gbif-idThe ID for the item on GBIF. Number.
gbif-styleThe style for the GBIF layer. See link in developer notes to API with all styles listed.
controlsWether or not to allow controls in the map. Boolean.

Usage

Install gbif-map via npm and import it in your webpack/rollup bundles.

Alternatively, import it in your ES module supported browser with import 'https://unpkg.com/gbif-map?module'; in a JavaScript module file or in your HTML with <script src="https://unpkg.com/gbif-map?module" type="module"></script>. The demo page uses the latter method.

Developer notes

GBIF API is available at https://www.gbif.org/developer/maps

Keywords

FAQs

Package last updated on 26 Feb 2019

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