-
Notifications
You must be signed in to change notification settings - Fork 94
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
Support for Marker Image URLs #20
Comments
Markers need to be downloaded before they can be used, and the plugin already supports adding markers from local files so it's doable currently but it would be user friendly to have the plugin handle the download process. A tricky thing here is when multiple markers need to be added with different "remote" images things get messed up as downloads are async. |
Note to self: on iOS downloading marker images likely requires ATS exceptions to be added to the plist |
So you can now do one of these on both iOS and Android: icon: 'http://www.bme.be/wp-content/uploads/2014/04/marker.png'
icon: 'res://icon'
iconPath: 'res/markers/home_marker.png' I've implemented a high performance algorithm that fetches and caches markers from urls. It's probably not perfect but for a first attempt I'm pretty happy. This map uses images configured in various ways: Available from GitHub now, on npm when 2.3.0 is published. |
Currently, the plugin only loads local resources as marker images. It would be nice if we could also specify a URL to use for the marker.
The text was updated successfully, but these errors were encountered: