-
Notifications
You must be signed in to change notification settings - Fork 509
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
Add location, styleString(URL/JSON), onMapClick, queryRenderedFeatures #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work so far! some minor comments below
|
||
MapboxMapController build( | ||
int id, Context context, AtomicInteger state, PluginRegistry.Registrar registrar) { | ||
final MapboxMapController controller = | ||
new MapboxMapController(id, context, state, registrar, options); | ||
new MapboxMapController(id, context, state, registrar, options, styleString); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can style string be made part of the options class? It's a configuration similar to other options availlable. (before introducing Style.java upstream this was part of the MapboxMapOptions class).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be glad if you could elaborate on this, an of course, if you find a better place for it I'll be happy if you can move it there.
android/src/main/java/com/mapbox/mapboxgl/MapboxMapController.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/mapbox/mapboxgl/MapboxMapController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ocation Add location, styleString(URL/JSON), onMapClick, queryRenderedFeatures
Added styleString. This works as styleURL or as a styleJSON (if it's a JSON).
Added basic user location. Still need to implement CameraMode and RenderMode.
Added onMapClick, returns point on screen and lat/lon.
Added queryRenderedFeatures and queryRenderedFeatures and queryRenderedFeaturesInRect.