Adds an image to the map.
The target object (IAnchorable) for the image (e.g., Space, Door, or Coordinate).
The URL of the image (JPEG or PNG format).
Configuration options for the image (see TAddImageOptions).
The created Image3DView instance.
mapView.Image3D.add(coordinate, 'https://example.com/logo.png', { width: 2, height: 1 });
mapView.Image3D.add(space, 'https://example.com/banner.jpg', {
width: 3,
height: 1.5,
rotation: 45,
verticalOffset: 2
});
mapView.Image3D.add(coordinate, 'https://example.com/icon.png', {
width: 1,
height: 1,
flipImageToFaceCamera: true
});
Removes an image from the map.
The Image3DView instance to remove.
Remove all the images from the map.
An array of all removed Image3DView instances.
3D images in Mappedin JS
Images can enhance indoor maps by adding custom branding, highlighting important features, or providing additional visual information. They can be placed on any Door, Space, or Coordinate and support various positioning and styling options.
Features
Memory Usage Calculation
Formula:
width * height * 4 bytes/pixel = memory used512px * 512px * 4 bytes/pixel = 1MB4096px * 4096px * 4 bytes/pixel = 64MBExample Usage
Advanced
flipImageToFaceCamera: truefor billboard-style images that always face the user.verticalOffsetto position images above or below the anchor point.rotationto orient images in specific directions.Performance Tips
More Information
This class is accessed using MapView.Image3D.