Skip to main content

MapplsPin Strategy

Add Marker

To add marker using mappls pin:

mapplsMap.addMarker(new MarkerOptions().mapplsPin(mapplsPin));

To get the callback that marker is added or not:

mapplsMap.addMarker(new MarkerOptions().mapplsPin(mapplsPin), new OnMarkerAddedListener() {  
@Override
public void onSuccess() {
//On Marker Added Successfully
}

@Override
public void onFailure() {
//Failure
}
});

To set Camera to particular eLoc

Sdk allows various method to Move, ease,animate Camera to a particular location :

Java

mapplsMap.moveCamera(CameraMapplsPinUpdateFactory.newMapplsPinZoom("MMI000", 14));  
mapplsMap.easeCamera(CameraMapplsPinUpdateFactory.newMapplsPinZoom("MMI000", 14));
mapplsMap.animateCamera(CameraMapplsPinUpdateFactory.newMapplsPinZoom("MMI000", 14));

Kotlin

mapplsMap?.moveCamera(CameraMapplsPinUpdateFactory.newMapplsPinZoom("MMI000", 14));  
mapplsMap?.easeCamera(CameraMapplsPinUpdateFactory.newMapplsPinZoom("MMI000", 14));
mapplsMap?.animateCamera(CameraMapplsPinUpdateFactory.newMapplsPinZoom("MMI000", 14));

To set Camera to particular eLoc Bound

Sdk allows various method to Move, ease,animate Camera to a particular eLoc Bound :

Java

mapplsMap.moveCamera(CameraMapplsPinUpdateFactory.newMapplsPinBounds(eLocs, 10 , 100, 10, 10));  
mapplsMap.easeCamera(CameraMapplsPinUpdateFactory.newMapplsPinBounds(eLocs, 10 , 100, 10, 10));
mapplsMap.animateCamera(CameraMapplsPinUpdateFactory.newMapplsPinBounds(eLocs, 10 , 100, 10, 10));

Kotlin

mapplsMap?.moveCamera(CameraMapplsPinUpdateFactory.newMapplsPinBounds(eLocs, 10 , 100, 10, 10));  
mapplsMap?.easeCamera(CameraMapplsPinUpdateFactory.newMapplsPinBounds(eLocs, 10 , 100, 10, 10));
mapplsMap?.animateCamera(CameraMapplsPinUpdateFactory.newMapplsPinBounds(eLocs, 10 , 100, 10, 10));