Skip to content

Commit

Permalink
feat: limit map pins
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkrieger committed Apr 30, 2023
1 parent 4475536 commit 7dc8247
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/views/map_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ class _MapViewState extends State<MapView> {
e["date_created"],
isUtc: true)),
point: LatLng(e["latitude"], e["longitude"])))
.toList()
.reversed
.take(500)
.toList()
.reversed
.toList();
if (filtered.isNotEmpty) {
setState(() {
Expand Down Expand Up @@ -154,7 +159,7 @@ class _MapViewState extends State<MapView> {
width: 130,
builder: (ctx) => ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.deepPurpleAccent
backgroundColor: Colors.deepPurpleAccent
.withOpacity(0.5)),
onPressed: () => pushOutline(
ctx, note.outlineId, note.id),
Expand Down

0 comments on commit 7dc8247

Please sign in to comment.