JSPM

  • Created
  • Published
  • Downloads 156
  • Score
    100M100P100Q112651F
  • License Apache-2.0

Provides OGC plugin to Google Maps with features such as WmsMapType.

Package Exports

  • @googlemaps/ogc

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 (@googlemaps/ogc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

OGC Plugin for Google Maps v3

Description

Add a WmsMapType to Google Maps.

NPM

Available via NPM as the package @googlemaps/ogc

Documentation

The reference documentation can be found at this link.

Examples

See the WMS example in action.

import { WmsMapType } from '@googlemaps/ogc';

map = new google.maps.Map(document.getElementById("map"), mapOptions);

landCoverMapType = WmsMapType({
    url: "https://www.mrlc.gov/geoserver/NLCD_Land_Cover/wms?",
    layers: "mrlc_display:NLCD_2016_Land_Cover_L48",
    name: "Land Cover",
    alt: "NLCD_2016_Land_Cover_L48",
    maxZoom: 18
});

map.mapTypes.set("landcover", landCoverMapType);
map.setMapTypeId("landcover");

// alternative as overlay
map.overlayMapTypes.push(landCoverMapType);

Support

This library is community supported. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it.

If you find a bug, or have a feature suggestion, please log an issue. If you'd like to contribute, please read [How to Contribute][contrib].