Skip to content
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

Merged
merged 3 commits into from
Feb 5, 2019

Conversation

yoavrofe
Copy link
Collaborator

@yoavrofe yoavrofe commented Feb 3, 2019

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.

Copy link
Collaborator

@tobrun tobrun left a 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

android/.settings/org.eclipse.buildship.core.prefs Outdated Show resolved Hide resolved

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);
Copy link
Collaborator

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).

Copy link
Collaborator Author

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.

lib/src/mapbox_map.dart Outdated Show resolved Hide resolved
lib/src/mapbox_map.dart Outdated Show resolved Hide resolved
lib/src/mapbox_map.dart Outdated Show resolved Hide resolved
lib/src/mapbox_map.dart Outdated Show resolved Hide resolved
lib/src/mapbox_map.dart Outdated Show resolved Hide resolved
@tobrun tobrun added this to the 0.0.2 milestone Feb 5, 2019
@yoavrofe yoavrofe added the bug Something isn't working label Feb 5, 2019
@yoavrofe yoavrofe removed the bug Something isn't working label Feb 5, 2019
Copy link
Collaborator

@tobrun tobrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants