Class MapHandle
java.lang.Object
org.maplibre.nativeffi.map.MapHandle
- All Implemented Interfaces:
AutoCloseable
Owned native map handle. Close it on the map owner thread.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddColorReliefLayer(String layerId, String sourceId) voidaddColorReliefLayer(String layerId, String sourceId, String beforeLayerId) voidaddCustomGeometrySource(String sourceId, CustomGeometrySourceOptions options) voidaddGeoJsonSourceData(String sourceId, GeoJson data) voidaddGeoJsonSourceUrl(String sourceId, String url) voidaddHillshadeLayer(String layerId, String sourceId) voidaddHillshadeLayer(String layerId, String sourceId, String beforeLayerId) voidaddImageSourceImage(String sourceId, List<LatLng> coordinates, PremultipliedRgba8Image image) voidaddImageSourceUrl(String sourceId, List<LatLng> coordinates, String url) voidaddLocationIndicatorLayer(String layerId) voidaddLocationIndicatorLayer(String layerId, String beforeLayerId) voidaddRasterDemSourceTiles(String sourceId, List<String> tiles) voidaddRasterDemSourceTiles(String sourceId, List<String> tiles, TileSourceOptions options) voidaddRasterDemSourceUrl(String sourceId, String url) voidaddRasterDemSourceUrl(String sourceId, String url, TileSourceOptions options) voidaddRasterSourceTiles(String sourceId, List<String> tiles) voidaddRasterSourceTiles(String sourceId, List<String> tiles, TileSourceOptions options) voidaddRasterSourceUrl(String sourceId, String url) voidaddRasterSourceUrl(String sourceId, String url, TileSourceOptions options) voidaddStyleLayerJson(JsonValue layerJson) voidaddStyleLayerJson(JsonValue layerJson, String beforeLayerId) voidaddStyleSourceJson(String sourceId, JsonValue sourceJson) voidaddVectorSourceTiles(String sourceId, List<String> tiles) voidaddVectorSourceTiles(String sourceId, List<String> tiles, TileSourceOptions options) voidaddVectorSourceUrl(String sourceId, String url) voidaddVectorSourceUrl(String sourceId, String url, TileSourceOptions options) attachMetalOwnedTexture(MetalOwnedTextureDescriptor descriptor) attachMetalSurface(MetalSurfaceDescriptor descriptor) attachOpenGLOwnedTexture(OpenGLOwnedTextureDescriptor descriptor) attachOpenGLSurface(OpenGLSurfaceDescriptor descriptor) attachVulkanOwnedTexture(VulkanOwnedTextureDescriptor descriptor) attachVulkanSurface(VulkanSurfaceDescriptor descriptor) bounds()camera()cameraForGeometry(Geometry geometry) cameraForGeometry(Geometry geometry, CameraFitOptions fitOptions) cameraForLatLngBounds(LatLngBounds bounds) cameraForLatLngBounds(LatLngBounds bounds, CameraFitOptions fitOptions) cameraForLatLngs(List<LatLng> coordinates) cameraForLatLngs(List<LatLng> coordinates, CameraFitOptions fitOptions) voidvoidclearLayerFilter(String layerId) voidclose()copyStyleImagePremultipliedRgba8(String imageId) static MapHandlecreate(RuntimeHandle runtime, MapOptions options) voidvoideaseTo(CameraOptions camera) voideaseTo(CameraOptions camera, AnimationOptions animation) voidflyTo(CameraOptions camera) voidflyTo(CameraOptions camera, AnimationOptions animation) imageSourceCoordinates(String sourceId) voidinvalidateCustomGeometrySourceRegion(String sourceId, LatLngBounds bounds) voidinvalidateCustomGeometrySourceTile(String sourceId, CanonicalTileId tileId) booleanisClosed()booleanbooleanvoidjumpTo(CameraOptions camera) latLngBoundsForCamera(CameraOptions camera) latLngForPixel(ScreenPoint point) latLngsForPixels(List<ScreenPoint> points) layerFilter(String layerId) layerProperty(String layerId, String propertyName) voidmoveBy(double deltaX, double deltaY) voidmoveByAnimated(double deltaX, double deltaY) voidmoveByAnimated(double deltaX, double deltaY, AnimationOptions animation) voidmoveStyleLayer(String layerId) voidmoveStyleLayer(String layerId, String beforeLayerId) longnativeAddress(InternalAccess access) nativeHandle(InternalAccess access) voidpitchBy(double pitch) voidpitchByAnimated(double pitch) voidpitchByAnimated(double pitch, AnimationOptions animation) pixelForLatLng(LatLng coordinate) pixelsForLatLngs(List<LatLng> coordinates) voidbooleanremoveStyleImage(String imageId) booleanremoveStyleLayer(String layerId) booleanremoveStyleSource(String sourceId) voidvoidvoidrotateBy(ScreenPoint first, ScreenPoint second) voidrotateByAnimated(ScreenPoint first, ScreenPoint second) voidrotateByAnimated(ScreenPoint first, ScreenPoint second, AnimationOptions animation) runtime()voidscaleBy(double scale) voidscaleBy(double scale, ScreenPoint anchor) voidscaleByAnimated(double scale) voidscaleByAnimated(double scale, AnimationOptions animation) voidscaleByAnimated(double scale, ScreenPoint anchor) voidscaleByAnimated(double scale, ScreenPoint anchor, AnimationOptions animation) voidsetBounds(BoundOptions options) voidsetCustomGeometrySourceTileData(String sourceId, CanonicalTileId tileId, GeoJson data) voidsetDebugOptions(Set<DebugOption> options) voidsetFreeCameraOptions(FreeCameraOptions options) voidsetGeoJsonSourceData(String sourceId, GeoJson data) voidsetGeoJsonSourceUrl(String sourceId, String url) voidsetImageSourceCoordinates(String sourceId, List<LatLng> coordinates) voidsetImageSourceImage(String sourceId, PremultipliedRgba8Image image) voidsetImageSourceUrl(String sourceId, String url) voidsetLayerFilter(String layerId, JsonValue filter) voidsetLayerProperty(String layerId, String propertyName, JsonValue value) voidsetLocationIndicatorAccuracyRadius(String layerId, double radius) voidsetLocationIndicatorBearing(String layerId, double bearing) voidsetLocationIndicatorImageName(String layerId, LocationIndicatorImageKind imageKind, String imageId) voidsetLocationIndicatorLocation(String layerId, LatLng coordinate, double altitude) voidvoidsetRenderingStatsViewEnabled(boolean enabled) voidsetStyleImage(String imageId, PremultipliedRgba8Image image) voidsetStyleImage(String imageId, PremultipliedRgba8Image image, StyleImageOptions options) voidsetStyleJson(String json) voidsetStyleLightJson(JsonValue lightJson) voidsetStyleLightProperty(String propertyName, JsonValue value) voidsetStyleUrl(String url) voidsetTileOptions(TileOptions options) voidsetViewportOptions(ViewportOptions options) booleanstyleImageExists(String imageId) styleImageInfo(String imageId) booleanstyleLayerExists(String layerId) styleLayerJson(String layerId) styleLayerType(String layerId) styleLightProperty(String propertyName) booleanstyleSourceExists(String sourceId) styleSourceInfo(String sourceId) styleSourceType(String sourceId)
-
Method Details
-
create
-
setStyleUrl
-
setStyleJson
-
addStyleSourceJson
-
removeStyleSource
-
styleSourceExists
-
styleSourceType
-
styleSourceInfo
-
styleSourceIds
-
addGeoJsonSourceUrl
-
addGeoJsonSourceData
-
setGeoJsonSourceUrl
-
setGeoJsonSourceData
-
addCustomGeometrySource
-
setCustomGeometrySourceTileData
-
invalidateCustomGeometrySourceTile
-
invalidateCustomGeometrySourceRegion
-
addVectorSourceUrl
-
addVectorSourceUrl
-
addVectorSourceTiles
-
addVectorSourceTiles
-
addRasterSourceUrl
-
addRasterSourceUrl
-
addRasterSourceTiles
-
addRasterSourceTiles
-
addRasterDemSourceUrl
-
addRasterDemSourceUrl
-
addRasterDemSourceTiles
-
addRasterDemSourceTiles
-
setStyleImage
-
setStyleImage
-
removeStyleImage
-
styleImageExists
-
styleImageInfo
-
copyStyleImagePremultipliedRgba8
-
addImageSourceUrl
-
addImageSourceImage
public void addImageSourceImage(String sourceId, List<LatLng> coordinates, PremultipliedRgba8Image image) -
setImageSourceUrl
-
setImageSourceImage
-
setImageSourceCoordinates
-
imageSourceCoordinates
-
addStyleLayerJson
-
addStyleLayerJson
-
addHillshadeLayer
-
addHillshadeLayer
-
addColorReliefLayer
-
addColorReliefLayer
-
addLocationIndicatorLayer
-
addLocationIndicatorLayer
-
setLocationIndicatorLocation
-
setLocationIndicatorBearing
-
setLocationIndicatorAccuracyRadius
-
setLocationIndicatorImageName
public void setLocationIndicatorImageName(String layerId, LocationIndicatorImageKind imageKind, String imageId) -
removeStyleLayer
-
styleLayerExists
-
styleLayerType
-
styleLayerIds
-
moveStyleLayer
-
moveStyleLayer
-
styleLayerJson
-
setStyleLightJson
-
setStyleLightProperty
-
styleLightProperty
-
setLayerProperty
-
layerProperty
-
setLayerFilter
-
clearLayerFilter
-
layerFilter
-
attachMetalOwnedTexture
-
attachMetalBorrowedTexture
-
attachVulkanOwnedTexture
-
attachVulkanBorrowedTexture
-
attachOpenGLOwnedTexture
-
attachOpenGLBorrowedTexture
-
attachMetalSurface
-
attachVulkanSurface
-
attachOpenGLSurface
-
requestRepaint
public void requestRepaint() -
requestStillImage
public void requestStillImage() -
setDebugOptions
-
debugOptions
-
setRenderingStatsViewEnabled
public void setRenderingStatsViewEnabled(boolean enabled) -
isRenderingStatsViewEnabled
public boolean isRenderingStatsViewEnabled() -
isFullyLoaded
public boolean isFullyLoaded() -
dumpDebugLogs
public void dumpDebugLogs() -
viewportOptions
-
setViewportOptions
-
tileOptions
-
setTileOptions
-
camera
-
jumpTo
-
easeTo
-
easeTo
-
flyTo
-
flyTo
-
moveBy
public void moveBy(double deltaX, double deltaY) -
moveByAnimated
public void moveByAnimated(double deltaX, double deltaY) -
moveByAnimated
-
scaleBy
public void scaleBy(double scale) -
scaleBy
-
scaleByAnimated
public void scaleByAnimated(double scale) -
scaleByAnimated
-
scaleByAnimated
-
scaleByAnimated
-
rotateBy
-
rotateByAnimated
-
rotateByAnimated
-
pitchBy
public void pitchBy(double pitch) -
pitchByAnimated
public void pitchByAnimated(double pitch) -
pitchByAnimated
-
cancelTransitions
public void cancelTransitions() -
cameraForLatLngBounds
-
cameraForLatLngBounds
-
cameraForLatLngs
-
cameraForLatLngs
-
cameraForGeometry
-
cameraForGeometry
-
latLngBoundsForCamera
-
latLngBoundsForCameraUnwrapped
-
bounds
-
setBounds
-
freeCameraOptions
-
setFreeCameraOptions
-
projectionMode
-
setProjectionMode
-
pixelForLatLng
-
latLngForPixel
-
pixelsForLatLngs
-
latLngsForPixels
-
createProjection
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
isClosed
public boolean isClosed() -
runtime
-
nativeHandle
-
nativeAddress
-
releaseDetachedCustomGeometrySources
-