mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
475 stars 133 forks source link

Add circle layer with java #2031

Closed daxiangyj closed 1 year ago

daxiangyj commented 1 year ago

请问一下如何用java的api添加circlelayer图层

daxiangyj commented 1 year ago

Android v10 sdk

baleboy commented 1 year ago

Hi, I'm afraid this issue doesn't contain enough information to be able to reply. Could describe more in detail what is the problem?

daxiangyj commented 1 year ago

我使用的是java进行开发的,目前调用android mapbox V10 SDK,但是无法通过java的方法添加CircleLayer,没有addLayer方法,但是koltlin版本是有这个方法的。或者能不能提供有关CircleLayer的java调用的DEMO,谢谢!

yunikkk commented 1 year ago

@daxiangyj you could use LayerUtils.addLayer(style, layer); to add layer in java

daxiangyj commented 1 year ago

Thanks,I will try it.