Services Plugins FAQs

MapBox Plugin - Create multi polygon showing all polygons

Hello,

My app requires that users set the location boundaries using polygon draw which is then attached to their object as geoJSON data. This all works great using the mapbox plugin!

Now, I need another map which displays all polygons (or at least a selection of them from certain objects) so that we can see multiple polygons on the map simultaneously. Using a line drawing with type set to polygon works, but it does not show separate polygons, instead, they are all linked together. I have also tried multi polygon, but I am struggling to load the geoJSON search into the multiline input I am using for the multi polygon as it is not formatted correctly.

Is there a way to do this using the plugin? Thank you for your help!

Hello @Shep,

Thank you so much for reaching out!

For the multipolygon to function correctly, it’s essential to adhere to the right format. From the screenshot you’ve shared, the majority of the code appears to be structured well. However, please ensure that all coordinate points are encapsulated within square brackets ([ ]). Please check our demo page as there is an example of how the code should look like.

While your idea is possible, assisting in this specific manner falls under custom development, which is beyond our regular support scope.

We apologize for any inconvenience and appreciate your understanding. If you have any other questions or need further clarification, please don’t hesitate to ask.

Have a good day :hugs: