An image is a flat graphic that is aligned with the earth's surface.
It works much like a marker.
Use EarthInstance.addImage( properties )
var myimage = myearth.addImage( {
location: { lat : 12.5, lng : 18.7 },
image: 'my-symbol.svg'
} );
{ lat: 0, lng: 0 }
The geo location where the image is placed.
0
Distance to the earth surface.
dataURI of a white circle
Provide a URL to an image from the same domain or use a dataURI.
SVG files are recommended but it is also possible to use PNG, GIF or JPG files.
Tool: Get Image as dataURI
false
Set to true, to load your image without colors (completely white), so can you can tint it with the color property.
128
You may need to increase this value if you are displaying the image on a large scale.
The value must be a power of two (..., 64, 128, 256, 512, 1024, ...)!
#FFFFFF
The color is multiplied to the image. If you want to tint the image exactly to the specified color, provide a white image or use imageAlphaOnly=true.
1
0.0 - 1.0
1
0
Rotation in degrees.
false
The image is rotated around the Y axis to point at the defined lat/lng position.
Example: Look at Location
false
Set to true if you add events to this image. * After initation you can set hotspot to false to disable events temporarily.
Example: Click Events
true
true
If set to false the image is not aligned with the earth surface.
occluded is true if the image is on the backside of the earth.
Reference to the EarthInstance.
Example: Animatable Properties
Stops all animations of this object. To stop a specific animation use AnimationInstance.stop()
Removes the image permanently.
The same events as for markers. See Marker Events.