Great Britain Map JSON example

Hello friends,


I have a question, I'm new here and I want to better understand how the map system works, for example, I want to display only the map of Great Britain with each region separately (the example with the United States), and at the same time all the major cities on the same map as Markers (eg World Map Markers), with certain data, how and where can I generate this data in JSON to later use it in "syncfusion_flutter_maps".

USA EXAMPLE:
example_usa-min.png

WORLD MAP EXAMPLE:
exemple_world_markers-min.png


Please guide me and help me with this aspect, thank you in advance!


1 Reply 1 reply marked as answer

HK Hariharasudhan Kanagaraj Syncfusion Team September 8, 2023 01:07 PM UTC

Hi Dorin,


You can achieve the mentioned requirement by using the sublayers properties, as they render the shapes on the base map according to the data provided in the GeoJSON. Here, the base map will be rendered based on the data provided to the source property of the MapTileLayer or MapShapeLayer used in the layers property, and the sublayers will be added to the base maps based on the data. Additionally, you can render the markers at the specified latitude and longitude based on the data provided using the markerBuilder property.


Shared the User Guide documentation link below regarding the sublayers and marker for your reference.


Sublayer: https://help.syncfusion.com/flutter/maps/shape-sublayer.

Marker: https://help.syncfusion.com/flutter/maps/markers#adding-markers


How and where can I generate this data in JSON?


The JSON we used in our sample is only to showcase the available features. You can get the correct JSON from trusted online providers. We have shared a link to one such provider for your reference.

https://map.igismap.com/gis-data/india/administrative_outline_boundary


Additionally, here are some GeoJSON providers that you can find in the shared link below. Please note that we are not responsible for the use of these links, or the data and licensing associated with them. We are simply sharing the links that we search and found online.


https://www.placemark.io/

https://geojson.io/#map=2/0/20

https://martinjc.github.io/UK-GeoJSON/

https://cartographyvectors.com/map/1407-great-britian-electoral-regions


Note:
Please check the licensing of any providers before getting JSON from them.


If you have further queries, please get back to us.


Regards,
Hari Hara Sudhan. K.


Marked as answer
Loader.
Up arrow icon