maptalks.js icon indicating copy to clipboard operation
maptalks.js copied to clipboard

Loading Geojson from Geoserver

Open jose-sanchez-morales opened this issue 4 years ago • 1 comments

maptalks's version and what browser you use?

maptalks v0.49.1

Issue description

I'm trying to load a Geojson composed by several polygons from Geoserver by using a WFS request: https://docs.geoserver.org/latest/en/user/services/wfs/outputformats.html

This will output a JSON file i.e. {"type":"FeatureCollection","features":[{"type":"Feature","id":"survey_area.1526","geometry":{"type":"MultiPolygon","coordinates":[[[............

How can we ingest these polygons into Maptalks as a Polygon layer?

Please provide a reproduction URL (on any jsfiddle like site)

jose-sanchez-morales avatar Nov 06 '20 14:11 jose-sanchez-morales

@jose-sanchez-morales https://maptalks.org/maptalks.js/api/0.x/GeoJSON.html

deyihu avatar Nov 09 '20 00:11 deyihu