adjusted data & react-maps adapter to use GEOJson data format for polygon visualizations
added a dev-only switch Use MVT Render that allows users to switch off the MVT render method of plotting polygons on the map (this is the default method for all polygon renders). When useMVTOption state is false, the map is configured to use GEOJson data instead.
the switch will only be available when we have GEOJson columns in the data rows
open the widget in Editor mode by pressingOpen in Editor button on the top right of the widget preview
Note:
when polygons are rendered with the MVT method, the postal codes will be plotted around a certain point (read from data if available) and with a certain zoom for the viewport. Zooming into data extent is not available for postal codes using the MVT method because browser performance is affected when we deal with too many polygons.
Changes:
Map Layer Configuration
GEOJson
data format for polygon visualizationsUse MVT Render
that allows users to switch off the MVT render method of plotting polygons on the map (this is the default method for all polygon renders). WhenuseMVTOption
state is false, the map is configured to use GEOJson data instead.Recording:
https://user-images.githubusercontent.com/41120953/201142866-5ea0b562-4b17-424b-a481-bd0d2b834f3c.mov
To test:
Cancel
button on the top rightTest PC Map
from the list of widgetsOpen in Editor
button on the top right of the widget previewNote: