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

@eisberg-labs/google-maps-leaflet-tile-layer

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eisberg-labs/google-maps-leaflet-tile-layer

Google Maps tile layer for react leaflet.

  • 4.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Downloads

Google Maps Leaflet Tile Layer

Google Maps tile layer for react leaflet.

Example

If you 👍 or use this project, consider giving it a ★, thanks! 🙌

Installation

Prerequisite is to have leaflet library already installed.

npm i --save leaflet@1.9.3 react-leaflet@^4.2.0

As for the google-maps-leaflet-tile-layer:

npm i --save @eisberg-labs/google-maps-leaflet-tile-layer

Usage

import {MapContainer, Marker} from 'react-leaflet';
import * as L from 'leaflet';
import "leaflet/dist/leaflet.css";

export const Basic = () => {

  return (
    <MapContainer id="map" zoom={10} center={[45, 16]} style={{
      height: 300,
      width: '100%',
      position: 'relative', opacity: 1,
    }}>
      <GoogleLayer maxZoom={20}/>
    </MapContainer>
  )
}

Api

NameTypeDefaultDescription
subdomainsstring[]['mt0', 'mt1', 'mt2']If one subdomain is down, try another.

License

MIT © Eisberg Labs

Keywords

FAQs

Package last updated on 25 Jan 2023

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