com.mapbox.mapboxsdk.exceptions.IconBitmapChangedException Maven / Gradle / Ivy
package com.mapbox.mapboxsdk.exceptions;
import android.graphics.Bitmap;
import com.mapbox.mapboxsdk.annotations.Icon;
import com.mapbox.mapboxsdk.annotations.Marker;
import com.mapbox.mapboxsdk.maps.MapView;
/**
*
* A {@code IconBitmapChangedException} is thrown by {@link MapView} when a {@link Marker} is added
* that has a {@link Icon} with a {@link Bitmap} that has been modified since the creation of the Icon.
*
* You cannot modify a {@code Icon} after it has been added to the map in a {@code Marker}
*
* @see MapView
* @see Icon
* @see Marker
*/
public class IconBitmapChangedException extends RuntimeException {
public IconBitmapChangedException() {
super("The added Marker has an Icon with a bitmap that has been modified. An Icon cannot be modified" +
"after it has been added to the map in a Marker.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy