package geojson
Pure OCaml library for GeoJSON
Install
Dune Dependency
Authors
Maintainers
Sources
geojson-0.2.0.tbz
sha256=3e44559e8eb8587a5cbcdcb508dd1464204b4e5f7a4c9819d4f91dd4f110cd9b
sha512=821d423219ccb27d446bdfa76404bbf4e03c4e68e78d66bff3a70bbc6dff9aebcf8c4844c89b2cc922b459767844c2195202790d0c9ca4eefb310e35ca315901
doc/geojson/Geojson/module-type-S/Feature/index.html
Module S.Feature
Source
Features which contain a geometry
A feature object is a geojson object with optional geometry and properties members.
foreign_members t
will extract name/value pair of a foreign member from t (a GeoJSON object)
id f
extracts the identifier for the feature if it exists.
Source
val v :
?id:[ `String of string | `Float of float ] ->
?properties:json ->
?foreign_members:(string * json) list ->
Geometry.t ->
t
v geo
creates a new feature object, you may wish to provide a properties
JSON object for the feature too.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>