Skip to content

Commit

Permalink
readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
munkh-altai committed Mar 3, 2020
1 parent ef8d886 commit 72ee58d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
36 changes: 17 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 72ee58d

Please sign in to comment.