2 Commits

Author SHA1 Message Date
b8d573a222 Pass feat.type (geometry dimension) in styleOptions (#130)
* Pass feature type into styleOptions

This then allows differentiation of styles with the same VT layer name.
Discussed here: https://github.com/Leaflet/Leaflet.VectorGrid/issues/125

* Document passing geometry type into style function

* Allow array return value of style function to contain functions, not just sets of L.Path options

* Tab indents

* Change terminology (type > geometry dimension"

* Use camelCase for geometryDimension

* Revert return function in array

* Change geometryDimension example code
2018-03-10 11:15:48 +01:00
99eb2fd970 Build docs with leafdoc, upload built docs, move stuff from README to docs 2017-02-17 14:02:35 +01:00