Closed dasunhegoda closed 5 months ago
Below are the list of MapStyle that is available in MapTiler
References MapTiler - https://docs.maptiler.com/sdk-js/api/ MapBox Draw - https://github.com/mapbox/mapbox-gl-draw Mapbox Draw with sample on calculating area - https://docs.maptiler.com/sdk-js/examples/mapbox-gl-draw/ Turf JS (for the calculation of the geoJson) - https://turfjs.org/ Control Style Switcher - https://docs.maptiler.com/sdk-js/examples/control-style-switcher/ (we already have this via raster layer but this doc have a different UI and different approach, the cons here is that we need to find static images for the variants of every map style) Vector layer helper (might be useful) - https://docs.maptiler.com/sdk-js/examples/helper-polyline-minimal/
MapTiler API key should be stored in the System Parameters with a key "spp_base_gis.map_tiler_api_key"
@reichie020212 bug found in the GIS. dev is currently fixing.
ISSUE: Radio button does not stay on the selected raster after navigating data layer and/or hiding the sidebar
STEPS TO REPLICATE:
INSTANCE: ACF-DEV
SCREENSHOTS/SCREEN RECORDING: https://github.com/OpenSPP/openspp-modules/assets/138551361/9433a484-86fc-43d2-b1bc-0b793c78e19a
@reichie020212 has fixed this.
Objective: To have our own GIS engine where we can plot vectors (Point, Line, Polygon) on a map by utilizing the maptiler JS and to have our own customized view where we can see on the map all of the vectors of the record.
Features: