-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Annotations API In Android #1716
Comments
I forked the repo and am working on a branch that attempts to add a point annotation to the map via a call to the native Map::addPointAnnotation. The JNI part of things is straightforward, and I have verified that I'm studying how annotations work in the core library in this MapboxGL Native Annotations Walkthrough. @incanus, one conceptual question I have deals with that final conversion to the vector space of a tile for a given point: const Coordinate coordinate(extent * (pp.x * z2 - x), extent * (pp.y * z2 - y)); We just computed I was able to follow the code through setting up the annotation vector tiles as well as telling the map what to update. Where do I look to learn about how that actual sprite is rendered on the map? My guess is that the actual problem here is that somehow the sprite itself is not being rendered in Android. I don't think the problem at hand is involved with the cutting of the annotation vector tiles. |
Note, stepping through all of the function calls mentioned in the point annotation walkthrough seem to execute fine when poking around my android device in |
I am currently working on the annotation proof of concept of adding a single marker to the map via the Android MapView. I have my own fork/branch of MapboxGL where I have simply added a basic We then call the native Extending the Java API seems straightforward, however, there is a problem with actually rendering this marker on the map. Calling My suspicion is that there is a problem loading that Where do glyphs get loaded, in specific, I will continue to trace through what happens in the |
Try using |
Thank you @tmpsantos. We now have our first marker annotation on MapboxGL Android! |
Is this complete or do we still need to build out parity @bleege? |
Overall, I think we're in good shape here as @hallahan did a great job laying the foundation. There are still a few a TODOs and higher level features like geodesic polylines that are still to be built out. |
Bumping to Popups are being handled in #894 |
Done! |
Implement marker annotations in Android similar to how it was implemented in iOS in ecb8e28.
The text was updated successfully, but these errors were encountered: