class Model {
const Model(this.country, this.latitude, this.longitude);
final String country;
final double latitude;
final double longitude;
}
_data = const[
Model('Brazil', -14.235004, -51.92528),
Model('Germany', 51.16569, 10.451526),
Model('Australia', -25.274398, 133.775136),
Model('India', 20.593684, 78.96288),
Model('Russia', 61.52401, 105.318756)
];
MapShapeLayer(
source: _dataSource,
markerBuilder: (BuildContext context, int index) {
return MapMarker(
latitude: _data[index].latitude,
longitude: _data[index].longitude,
iconColor: Colors.blue,
);
})
Hi Tim,
Greetings from Syncfusion.
Currently there are no option to find the center point of the each shape. We have logged this as a feature request and this option will be provided in any of our upcoming releases.
Feedback: https://www.syncfusion.com/feedback/24301/option-for-finding-the-center-point-of-each-shape
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.
Regards,
Lakshmi R.
Hi Tim,
Thanks for your update.
Similar to the previous request, this is also currently not possible since these fields are maintained for our internal purposes. However, if you can let us know the list of items you will need regarding the shape file details and the need for it in your application if possible, it will be helpful for us to check and consider exposing them along with the previously requested “center point value of each shape”.
Regards,
Lakshmi R.