- I was trying to implement PolygonFeature in map but could not do it in a fashion I am adding PointFeature. It does not display the Polygon in the map.
- I also tried examples Draw a Polygon and Draw a polygon with holes but they are using APIs that at least seem unavailiable in the
version 6.7.0
Example :
style.addSource()
style.addLayer()
These methods are not available in style of OnStyleLoadedListener
which seems to be String
type And Style.OnStyleLoaded
is not available in the APIs either (which is being used in the example)
style.addSource()
style.addLayer()
are available on MapBoxMap
but that does not render the polygon in the screen.
Are there any working examples or guide to render Polygon in Mapbox?