-
-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Scale for Markers (feature) #52
Comments
Do you mean fixed scale as in scale the markers up/down while the map scales? To me fixed scale means to keep them at a fixed scale, which is already the case. Polygons scale with the map. You can look at them for ideas. They just use a painter, but the scaling logic is there. Anyway the plugin system is there for this reason - make a plugin and @johnpryan could integrate it at some point into the core. This way the plugin system will get some love too. :) |
as @avioli mentioned, It looks like you have a solution that can be implemented using the plugin api. I'm going to close but feel free to reopen if you feel that doesn't fit your needs. |
Hey,
Would be great to see a fixed scale for markers, to cover a consistent area between zooms.
I did try to implement a solution in the marker_layer.dart, togglable by a new variable fixedScale, but unable to adjust size bigger than 100x100.
Ideas:
map.getZoomScale(map.zoom, map.zoom)
always returns 1.0 given the duplicated arguments, so currently its not doing anything in current code. I think it was placed here for this particular feature in the future. I believe the starting zoom should populate the second argument to maintain the starting size of the widget(image).Current Implementation:
My current implementation looks something like this (considering my starting zoom is 17.0).
Screen capture on youtube
Trouble I found is that the marker Width and Height have to be within 0-100 to work. My marker's widget is a AssetImage in a container.
Got any ideas on how to increase the size?
The text was updated successfully, but these errors were encountered: