本文整理汇总了Java中com.mapbox.mapboxsdk.maps.MapView.DID_FINISH_LOADING_STYLE属性的典型用法代码示例。如果您正苦于以下问题:Java MapView.DID_FINISH_LOADING_STYLE属性的具体用法?Java MapView.DID_FINISH_LOADING_STYLE怎么用?Java MapView.DID_FINISH_LOADING_STYLE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.mapbox.mapboxsdk.maps.MapView
的用法示例。
在下文中一共展示了MapView.DID_FINISH_LOADING_STYLE属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onMapChanged
/**
* Called when a map change events occurs. Used specifically to detect loading of a new style, if
* applicable reapply the route line source and layers.
*
* @param change the map change event that occurred
* @since 0.4.0
*/
@Override
public void onMapChanged(int change) {
if (change == MapView.DID_FINISH_LOADING_STYLE) {
placeRouteBelow();
drawRoutes();
addDirectionWaypoints();
showAlternativeRoutes(alternativesVisible);
}
}
示例2: onMapChanged
@Override
public void onMapChanged(int change) {
if (change == MapView.WILL_START_LOADING_MAP) {
stopAllAnimations();
} else if (change == MapView.DID_FINISH_LOADING_STYLE) {
mapStyleFinishedLoading();
}
}
示例3: onMapChanged
/**
* Called when a map change events occurs.
* <p>
* Used to detect loading of a new style, if applicable reapply traffic source and layers.
* </p>
*
* @param change the map change event that occurred
*/
@Override
public void onMapChanged(int change) {
if (change == MapView.DID_FINISH_LOADING_STYLE && isVisible()) {
updateState();
}
}