You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are glad to announce that our Essential Studio 2020 Volume 4 release v18.4.0.30 is rolled out and is available for download under the following link.
As we promised earlier, we have implemented the Shape sublayer feature and included in Volume 4, 2020 release (v18.4.0.30). Also, we have prepared sample for your requirement. Kindly check the attached sample.
class DataModel {
const DataModel(this.primaryKey);
final String primaryKey;
}
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Activity
LakshmiRadhaKrishnan commentedon Oct 12, 2020
Hi Goncalo,
Greetings from Syncfusion.
We have logged the feature request for “Sub-layer support for tile layer” and it can be tracked through our feedback portal below.
Feedback link: https://www.syncfusion.com/feedback/18668/sub-layer-support-for-tile-layer
We have planned to include this feature in our upcoming Vol 4, 2020 release which is scheduled to be available in the mid of December, 2020.
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.
Disclaimer: The date for the feature implementation is tentative and not a commitment on our parts.
Regards,
Lakshmi R.
LakshmiRadhaKrishnan commentedon Dec 18, 2020
Hi,
We are glad to announce that our Essential Studio 2020 Volume 4 release v18.4.0.30 is rolled out and is available for download under the following link.
https://www.syncfusion.com/forums/160733/essential-studio-2020-volume-4-release-v18-4-0-30-is-available-for-download
As we promised earlier, we have implemented the Shape sublayer feature and included in Volume 4, 2020 release (v18.4.0.30). Also, we have prepared sample for your requirement. Kindly check the attached sample.
Feedback: https://www.syncfusion.com/feedback/18668/sub-layer-support-for-tile-layer
Code Snippet:
class _ShapeSublayerPageState extends State {
MapZoomPanBehavior _zoomPanBehavior;
MapShapeSource _source;
int _selectedIndex = 12;
List _dataModel;
@OverRide
void initState() {
super.initState();
_dataModel = [
DataModel('Azores'),
DataModel('Madeira'),
DataModel('Aveiro'),
DataModel('Leiria'),
DataModel('Viana do Castelo'),
DataModel('Beja'),
DataModel('vora'),
DataModel('Faro'),
DataModel('Lisboa'),
DataModel('Portalegre'),
DataModel('Santarim'),
DataModel('Braga'),
DataModel('Braganca'),
DataModel('Castelo Branco'),
DataModel('Coimbra'),
DataModel('Guarda'),
DataModel('Porto'),
DataModel('Viseu'),
DataModel('Vila Real'),
];
_zoomPanBehavior = MapZoomPanBehavior(
focalLatLng: MapLatLng(39.916777, -8.07505),
zoomLevel: 7,
);
_source = MapShapeSource.asset(
'assets/portugal.json',
shapeDataField: 'name',
dataCount: _dataModel.length,
primaryValueMapper: (int index) => _dataModel[index].primaryKey,
);
}
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Shape sublayer'),
),
body: SfMaps(
layers: [
MapTileLayer(
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
zoomPanBehavior: _zoomPanBehavior,
sublayers: [
MapShapeSublayer(
source: _source,
color: Colors.grey.withOpacity(0.5),
strokeColor: Colors.black,
strokeWidth: 2,
selectedIndex: _selectedIndex,
onSelectionChanged: (int index) {
setState(() {
_selectedIndex = index;
});
},
selectionSettings: MapSelectionSettings(
color: Colors.red.withOpacity(0.7),
strokeColor: Colors.red[700],
strokeWidth: 3,
),
),
],
)
],
),
);
}
}
class DataModel {
const DataModel(this.primaryKey);
final String primaryKey;
}
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Lakshmi R.
Lima21 commentedon Dec 28, 2020
Hi, it solves my issue, thank you so much for your work!
This package is awesome :)