ogc-spekter
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

This is a fork of the famous OGC Package!

It is modified to add the WMS time parameter to a WMS overlay

OGC Plugin for Google Maps

npm Build Release codecov GitHub contributors semantic-release Discord

Description

Add a WmsMapType to Google Maps.

Note: This package was previously located at https://github.com/googlemaps/v3-utility-library.

NPM

Available via NPM as the package ogc-spekter.

npm i ogc-spekter

Documentation

The reference documentation can be found at this link.

Examples

See the WMS example in action.

import { WmsMapType } from "ogc-spekter";

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.

Package Sidebar

Install

npm i ogc-spekter

Weekly Downloads

4

Version

1.0.1

License

Apache-2.0

Unpacked Size

27.4 kB

Total Files

11

Last publish

Collaborators

  • sohagmahin