Skip to content

jesussmile/markerx

Repository files navigation

markerx

Hi Guys,

based off of https://github.com/KanarekApp/flutter_map_fast_markers I have written a new MarkerX class that can load huge number of marker points and show them on the map. In my example i am using a QuadTree to better sort the markers and using the bounds of the visible screen to populate the markers. simple logic and the draw on canvas feature that the original author uses (for now) [ will try with prebuilt markers in future]

Initially I tried to use zoom and populate markers based off of it but It would only do so where my screen was visible when i scrolled up down right left.. the..nothing.[ there is a markerzoom class if you want to try it out]

So, I decided to go with bounds instead. I feel it's doing a good job, surely will lag a bit when it has 30k markers to handle, However I am not sure if its just a placebo or is actually working, upto you guys to tell.

I have tried it with few markers may be 5000, works smooth.

Apologies, my knowledge is limited and this is as far as I could go, hopefully one of you can look into this matter and let us know if this is any good ?

If it works i would like to create a plugin. Never created a plugin so.. yeah!. Hopefully to learn from one of you on how to do it ?

If its similar to what we have now with the default marker, please disregards.Just a poor attempt I guess..

If not then cool .. just wanted to contribute.. :P

There are two options to check in the drop down menu,

1.short waypoint around 5000 markers

2.Long waypoint around 30000 markers I have added a option to select default flutter_map marker too...

this is the repo, feel free to try https://github.com/jesussmile/markerx

Untitled.mp4
20230405_140629.mp4

Note- I dont know anyting about PR or how to incorporate it, so.. if you make one tell me what to do next .. lol.

Okay... and this is the final result with ontap working

20230406_004240-VidRotate.mp4

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published