diff --git a/README.md b/README.md index 66cdf73..6bb8305 100644 --- a/README.md +++ b/README.md @@ -47,35 +47,33 @@ Add it in you FlutterMap and configure it using `FeatureLayerOptions`. FeatureLayerOptions( url: "https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Congressional_Districts/FeatureServer/0", geometryType:"polygon", - marker: Marker( - width: 30.0, - height: 30.0, - builder: (ctx) => Icon(Icons.pin_drop), - ), onTap: (attributes, LatLng location) { print(attributes); }, - polygonOptions: PolygonOptions( - borderColor: Colors.blueAccent, - color: Colors.black12, - borderStrokeWidth: 2), - + render: (dynamic attributes){ + // You can render by attribute + return PolygonOptions( + borderColor: Colors.blueAccent, + color: Colors.black12, + borderStrokeWidth: 2 + ); + }, + ), FeatureLayerOptions( url: "https://services8.arcgis.com/1p2fLWyjYVpl96Ty/arcgis/rest/services/Forest_Service_Recreation_Opportunities/FeatureServer/0", geometryType:"point", - marker: Marker( - width: 30.0, - height: 30.0, - builder: (ctx) => Icon(Icons.pin_drop), - ), + render:(dynamic attributes){ + // You can render by attribute + return Marker( + width: 30.0, + height: 30.0, + builder: (ctx) => Icon(Icons.pin_drop), + ); + }, onTap: (attributes, LatLng location) { print(attributes); }, - polygonOptions: PolygonOptions( - borderColor: Colors.blueAccent, - color: Colors.black12, - borderStrokeWidth: 2), ), ], diff --git a/pubspec.yaml b/pubspec.yaml index 4f86e38..05eb376 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_map_arcgis description: Arcgis plugin for flutter map -version: 0.0.7 +version: 0.0.8 author: Khan Khulgun Team homepage: https://github.com/munkh-altai/flutter_map_arcgis