All Projects → htoooth → Leaflet.chinesetmsproviders

htoooth / Leaflet.chinesetmsproviders

Licence: other
Provider for Chinese Tms Service

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Leaflet.chinesetmsproviders

Leaflet Velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 309 (-50.95%)
Mutual labels:  leaflet
React Leaflet
React components for Leaflet maps
Stars: ✭ 3,939 (+525.24%)
Mutual labels:  leaflet
Api
🏄Windy API, or Windy Leaflet Plugin, let you put animated weather map into your website and enjoy rich ecosystem of Leaflet library.
Stars: ✭ 532 (-15.56%)
Mutual labels:  leaflet
Leaflet.timedimension
Add time dimension capabilities on a Leaflet map.
Stars: ✭ 329 (-47.78%)
Mutual labels:  leaflet
Qgis2web
A QGIS plugin to export a map to an OpenLayers, Leaflet, or Mapbox GL JS webmap
Stars: ✭ 349 (-44.6%)
Mutual labels:  leaflet
Leaflet.editable
Make geometries editable in Leaflet.
Stars: ✭ 430 (-31.75%)
Mutual labels:  leaflet
Leaflet Ant Path
🌿🐜 Creates a leaflet polyline with a 'ant-path' animated flux
Stars: ✭ 296 (-53.02%)
Mutual labels:  leaflet
Django Leaflet
Use Leaflet in your Django projects
Stars: ✭ 563 (-10.63%)
Mutual labels:  leaflet
Leaflet Color Markers
color variations of the standard leaflet marker
Stars: ✭ 363 (-42.38%)
Mutual labels:  leaflet
Wicket
A modest library for moving between Well-Known Text (WKT) and various framework geometries
Stars: ✭ 484 (-23.17%)
Mutual labels:  leaflet
Gdal2tiles Leaflet
Generate raster image tiles for use with leaflet.
Stars: ✭ 338 (-46.35%)
Mutual labels:  leaflet
Mapview
Interactive viewing of spatial data in R
Stars: ✭ 341 (-45.87%)
Mutual labels:  leaflet
Leaflet.vectorgrid
Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
Stars: ✭ 436 (-30.79%)
Mutual labels:  leaflet
Ui Leaflet
AngularJS directive to embed an interact with maps managed by Leaflet library
Stars: ✭ 315 (-50%)
Mutual labels:  leaflet
Leaflet Locatecontrol
A leaflet control to geolocate the user.
Stars: ✭ 539 (-14.44%)
Mutual labels:  leaflet
Leaflet.markercluster
Marker Clustering plugin for Leaflet
Stars: ✭ 3,305 (+424.6%)
Mutual labels:  leaflet
Leaflet.easybutton
leaflet control buttons with icons and callbacks
Stars: ✭ 408 (-35.24%)
Mutual labels:  leaflet
Iclient Javascript
Modern GIS Web Client for JavaScript, based on Leaflet\OpenLayers\MapboxGL-JS\Classic(iClient8C), enhanced with ECharts\D3\MapV etc. Contributed by SuperMap & community.
Stars: ✭ 593 (-5.87%)
Mutual labels:  leaflet
Leaflet Search
Search stuff in a Leaflet map
Stars: ✭ 536 (-14.92%)
Mutual labels:  leaflet
Prunecluster
Fast and realtime marker clustering for Leaflet
Stars: ✭ 473 (-24.92%)
Mutual labels:  leaflet

Leaflet.ChineseTmsProviders

An extension to Leaflet that contains configurations for various Chinese tile providers.

Usage

npm i leaflet.chinatmsproviders

Leaflet-ChineseTmsProviders providers are refered to with a provider.<variant>.<type> -string. Let's say you want to add the nice Normal.Map base layers from www.tianditu.com to your map, you pass TianDiTu.Normal.Map to the L.tileLayer.chinaProvider-constructor, which will return a L.TileLayer instance for TianDiTu Normal Map tile layer.

//add TianDiTu Normal Map Layer to map.
L.tileLayer.chinaProvider('TianDiTu.Normal.Map').addTo(map);

Example

var map = L.map('map', {
    center: [31.59, 120.29],
    zoom: 12
});

L.tileLayer.chinaProvider('TianDiTu.Normal.Map',{maxZoom:18,minZoom:5}).addTo(map);
L.tileLayer.chinaProvider('TianDiTu.Normal.Annotion',{maxZoom:18,minZoom:5}).addTo(map);

There are more examples at the examples folder like below.

./examples/indexTianDiTu.html

./examples/indexGaoDe.html

./examples/indexGoogle.html

./examples/indexGeoq.html

./examples/indexOSM.html

./examples/indexBaidu.html

Above all maps use Coordinate Reference Systems (CRS), which are EPSG:3857.

Providers

Current options suitable for tile layers are:

  • TianDiTu
    • TianDiTu.Normal.Map
    • TianDiTu.Normal.Annotion
    • TianDiTu.Satellite.Map
    • TianDiTu.Satellite.Annotion
    • TianDiTu.Terrain.Map
    • TianDiTu.Terrain.Annotion
  • GaoDe
    • GaoDe.Normal.Map (include Annotion)
    • GaoDe.Satellite.Map
    • GaoDe.Satellite.Annotion
  • Google
    • Google.Normal.Map (include Annotion)
    • Google.Satellite.Map (exclude Annotion)
    • Google.Satellite.Map (include Annotion)
  • Geoq
    • Geoq.Normal.Map
    • Geoq.Normal.PurplishBlue
    • Geoq.Normal.Gray
    • Geoq.Normal.Warm
    • Geoq.Normal.Hydro
  • OSM
    • OSM.Normal.Map
  • Baidu
    • Baidu.Normal.Map
    • Baidu.Satellite.Map (exclude Annotion)
    • Baidu.Satellite.Annotion

Options

key

If you're using TianDiTu, please apply the key and config it in the option, like this:

L.tileLayer.chinaProvider(
    'TianDiTu.Normal.Map',
    {
        key: 'Your key',
        maxZoom:18,
        minZoom:5,
    }).addTo(map);

I added a key to the source code, but this key should only be used for testing.

Please note

If you want to use Baidu provider,please install Proj4Leaflet in your project.

About

This work was inspired from https://github.com/tontita/Leaflet.KoreanTmsProviders, https://github.com/leaflet-extras/leaflet-providers, and https://github.com/muyao1987/leaflet-tileLayer-baidugaode.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].