-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to get this Shapes on the sfMap given google map image sample ...? #2083
Comments
Please update sir @VijayakumarMariappan ...????? |
Hi @MukeshWrms, We have reviewed your query, and you can achieve your requirement of mapping with your given JSON data directly, without storing the JSON and map. This can be done by adding the required polygons to MapPloygon in MapShapeLayer or MapTileLayer. The polygon layer is a sublayer that renders a group of MapPolygon elements on both MapShapeLayer and MapTileLayer. We have shared the links below for your reference. For more information, please refer to it. If you have further queries, please get back to us. Regards, |
Please let us know if you need further assistance on this. |
@LavanyaGowtham2021 @VijayakumarMariappan @AswiniDileep this is not working for above steps, and we have used the geojson url loading process very much time for example we have used the delhi jeoJSON url, and background map
MapShapeLayer( void initState() { is not load on the my phone (android / ios). please give the helpful sample with MapTileLayer tile |
hi sir , String url; _dataSource = MapShapeSource.network( SfMaps( we have using the loop, this array is hold 3 row but generated only last index(one) source on map other two shape is not update at the map with for loop. please help on this. how can do this. |
@LavanyaGowtham2021 @VijayakumarMariappan Sir please give the solution is very urgent. |
@LavanyaGowtham2021 @VijayakumarMariappan Sir please give the solution is very urgent. |
sir, please update @LavanyaGowtham2021 @VijayakumarMariappan |
Hi @MukeshWrms , We have reviewed your query and observed that the issue arises because the MapShapeSubLayer data source is loaded within the initState using loop, which results in only the last dataset being replaced in _dataSource. This is why only the last shape layer is rendered. To address this, we have prepared a simple sample where multiple MapShapeLayer instances are created using a loop and stored in a list. These layers are then assigned to the sublayers property of the map. We have attached sample and please modify it based on your code accordingly to meet your specific requirements. Please feel free to reach out if you need further clarification or assistance. Sample : gh_2083.zip Regards, |
@LavanyaGowtham2021 @ThilipChandru @VijayakumarMariappan Dear Sir, i have check your sample but its not fulfilled our requirement's, we have not used the map i need like below function.this function generated with chatgpt Sir please update on that.... Thanks ChatGPT -> sfmap used to jeojson mulipal url in flutter class MapSample extends StatefulWidget { class _MapSampleState extends State { @OverRide Future _loadGeoJson() async {
} @OverRide
} |
sir please update |
sir please update |
Hi @MukeshWrms, We have validated your query, and you can achieve your requirement by considering the following key points.
Please check and get back to us if your require further assistance. Output screenshot: Sample: gh_2083.zip Note: Regards, |
Use case
This is my response how can set the direct of given polygon with MULTIPOLYGON achievement on the sfMap.
i have check the all example with sfMap is not getting on this.
{
"status": "success",
"List": {
"graph_report": [
{
},

"message": "data found"
}
Proposal
how to achievement on this on sf map with given our json directly without store json and store map.
The text was updated successfully, but these errors were encountered: