1.5.6 • Published 5 years ago
leaflet.houdini-geojson v1.5.6
Leaflet.Houdini-Geojson
A renderer plugin of Leaflet, supporting by houdini
TODO
- Using houdini animateworklet to interactive (chrome has not supported now)
Usage
Using houdini by default for all paths in the map:
import { houdini, register } from 'leaflet.houdini-geojson'
register()
var map = L.map('map', {
renderer: houdini()
})
Use a Canvas renderer with extra padding for specific vector geometries:
import { houdini, register } from 'leaflet.houdini-geojson'
register()
var map = L.map('map')
var myRenderer = houdini({ padding: 0.5 })
var line = L.polyline( coordinates, { renderer: myRenderer } )
var circle = L.circle( center, { renderer: myRenderer } )
Options
Option | Type | Default | Description |
---|---|---|---|
padding | Number | 0.1 | How much to extend the clip area around the map view (relative to its size) e.g. 0.1 would be 10% of map view in each direction |
tolerance | Number | 0 | How much to extend click tolerance round a path/object on the map |
className | String | null | class name for container |
style | Object | null | style for container |
Tips
- This plugin uses "--key" to cache all default properties, so that if you want to change property dynamically, changing "--key" at the same time, like
--key: renderer1.0!important
.
1.5.6
5 years ago
1.5.5
5 years ago
1.5.4
5 years ago
1.5.2
5 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.9
6 years ago
1.2.7
6 years ago
1.2.6
6 years ago
1.2.5
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago