Skip to content

googlemaps/js-ogc

Repository files navigation

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 @googlemaps/ogc.

npm i @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.

About

Add a WmsMapType to Google Maps

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy