-
Notifications
You must be signed in to change notification settings - Fork 41
Add POI and Polyline #9
Comments
@heraknos Thank you for trying out our library. It's still in development and we only covers the case we need internally, not all cases covered by Mapbox. Feel free to fork it, customize it and create a pull request. Cheers. |
Hi @heraknos, Firstly, initialize the annotations list of the mapview (which is recommended to be an observable collection):
(We didn't create any AddAnnotation function since we found that using collections made binding easier). Then create a polyline with predefined coordinates, or an observable collection of coordinates if you want to update them later:
If you already has a PolylineFeature, you may use it instead of this newly created annotation. If you want to styling the line, you need to create a new ShapeSource and a LineLayer (no need to add the line into the annotations list):
Hope this'll help :) |
I will check that, thx. |
There are also PointAnnotation, MultiPolylineAnnotation and CircleLayer, which work similar to the example above. You can use
There's no function to customize the callout view yet though. |
Hello,
I'm trying to add some points of interest and trying to draw a polyline, but I don't see any function for that. There is no documentation. Have you any idea ?
The text was updated successfully, but these errors were encountered: