Building custom overlay specifically circle with radius(colored) in Android MapBox GL

别说谁变了你拦得住时间么 提交于 2019-11-29 12:54:58

1. The map touch event is unresponsive once my CircleOverlay is displayed in map
This is an issue we plan to address by next release, you can follow progress on this here.

2. The marker doesnt stay in its coordinates once i zoom-in , zoom-out.
The could be because you aren't anchoring the marker icon correctly using .setAnchor() or your icon has padding around it. For a circle, you'll want to anchor centered (using 0.5f). A bug was introduced right before the previous stable release that causes anchoring not to work correctly. If this is an issue, use the 4.2.0-SNAPSHOT.

3. Updating markers doesnt work, So I have to remove then add again the marker. Could you elaborate on this issue? You might be using

Marker marker = mapboxMap.addMarker(new MarkerViewOptions()...

When you should be using:

MarkerView marker = mapboxMap.addMarker(new MarkerViewOptions()...

Which will give you more options to update markers.

4. The color does not match the color that I set in marker.
Could you clarify what you mean by this?

It sounds like you are wanting to do what this example does in the testapp? I would follow along with the code found there.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!