/**
* Construct a {@code LocationLayerPlugin}
*
* @param mapView the MapView to apply the My Location layer plugin to
* @param mapboxMap the MapboxMap to apply the My Location layer plugin with
* @param locationEngine the {@link LocationEngine} this plugin should use to update
* @param styleRes customize the user location icons inside your apps {@code style.xml}
* @since 0.1.0
*/
public LocationLayerPlugin(@NonNull MapView mapView, @NonNull MapboxMap mapboxMap,
@Nullable LocationEngine locationEngine, @StyleRes int styleRes) {
this.locationEngine = locationEngine;
this.mapboxMap = mapboxMap;
this.mapView = mapView;
this.styleRes = styleRes;
mapView.addOnMapChangedListener(this);
initialize();
}
LocationLayerPlugin.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:mapbox-plugins-android
作者:
评论列表
文章目录