Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Add symbol listener activity #1000

Merged
merged 13 commits into from
Mar 28, 2019
Merged

Conversation

samfader
Copy link
Contributor

@samfader samfader commented Mar 26, 2019

Resolves #995

Langston edit: added the GIF
ezgif com-resize

@samfader samfader requested a review from langsmith March 26, 2019 21:49
mapView = findViewById(R.id.mapView);
mapView.onCreate(savedInstanceState);
mapView.getMapAsync(this);

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: delete this blank line 😬

@@ -81,6 +81,7 @@
<string name="activity_plugins_building_plugin_description">Use the building plugin to easily display 3D building height</string>
<string name="activity_plugins_geojson_plugin_description">Easily retrieve GeoJSON data from a url, asset, or path</string>
<string name="activity_plugins_places_plugin_description">Add location search ("geocoding") functionality and UI to search for any place in the world</string>
<string name="activity_plugins_symbol_listener_description">Listen for Symbol interaction using the Annotations plugin and built-in listeners</string>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<string name="activity_plugins_symbol_listener_description">Listen for Symbol interaction using the Annotations plugin and built-in listeners</string>
<string name="activity_plugins_symbol_listener_description">Listen for Symbol interaction using the Annotation plugin and its built-in listeners</string>

@@ -10,6 +10,11 @@ android {
compileSdkVersion androidVersions.compileSdkVersion
buildToolsVersion androidVersions.buildToolsVersion

compileOptions {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need this compileOptionssection anymore. I tried removing it and the example works just fine for me.

private static final String MAKI_ICON_AIRPORT = "airport-15";
private SymbolManager symbolManager;
private Symbol symbol;
private final List<ValueAnimator> animators = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

You can delete this. You're not using it anywhere in the example.

OnMapReadyCallback {

private MapView mapView;
private MapboxMap mapboxMap;
Copy link
Contributor

Choose a reason for hiding this comment

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

You can delete this. Field can be converted to a local variable (on line 62).

@Override
public void onMapReady(@NonNull final MapboxMap mapboxMap) {

this.mapboxMap = mapboxMap;
Copy link
Contributor

Choose a reason for hiding this comment

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

You can delete this. You don't use mapboxMap elsewhere.

Sam Fader added 2 commits March 27, 2019 16:23
@samfader
Copy link
Contributor Author

Thanks @langsmith! Let me know what you think now.

Copy link
Contributor

@langsmith langsmith left a comment

Choose a reason for hiding this comment

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

🚢 🙇

@samfader
Copy link
Contributor Author

@langsmith It looks like Circle is failing and I think it's due to the compileOptions code that was removed here: #1000 (review)

@langsmith
Copy link
Contributor

Ok, then let's add that compileOptions thing back in @samfader

Sam Fader added 2 commits March 27, 2019 17:11
…mapbox-android-demo into sf-final-symbol-listener-example
@samfader
Copy link
Contributor Author

@langsmith Passing now. OK to merge?

@langsmith
Copy link
Contributor

:shipit:

@samfader samfader merged commit 1f2ca89 into master Mar 28, 2019
@samfader samfader deleted the sf-final-symbol-listener-example branch March 28, 2019 00:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants