Skip to content

Commit 690007c

Browse files
committed
Minor improvements to Polygons demo
1 parent 099286f commit 690007c

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

example/lib/pages/polygon.dart

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -300,24 +300,6 @@ class _PolygonPageState extends State<PolygonPage> {
300300
),
301301
children: [
302302
openStreetMapTileLayer,
303-
Builder(
304-
builder: (context) => PolygonLayer(
305-
drawInSingleWorld: true,
306-
polygons: [
307-
Polygon(
308-
points: [
309-
MapCamera.of(context).visibleBounds.northWest,
310-
MapCamera.of(context).visibleBounds.northEast,
311-
MapCamera.of(context).visibleBounds.southEast,
312-
MapCamera.of(context).visibleBounds.southWest,
313-
],
314-
color: Colors.orange.withAlpha(255 ~/ 3),
315-
borderColor: Colors.black,
316-
borderStrokeWidth: 10,
317-
),
318-
],
319-
),
320-
),
321303
MouseRegion(
322304
hitTestBehavior: HitTestBehavior.deferToChild,
323305
cursor: SystemMouseCursors.click,
@@ -381,9 +363,10 @@ class _PolygonPageState extends State<PolygonPage> {
381363
LatLng(50, -123),
382364
LatLng(50, -121),
383365
],
384-
borderStrokeWidth: 4,
366+
borderStrokeWidth: 3,
385367
borderColor: Colors.red,
386-
color: Colors.red,
368+
color: Colors.orange,
369+
label: 'Culling tester',
387370
),
388371
Polygon(
389372
points: const [

0 commit comments

Comments
 (0)