A points object efficiently draws a large amount of small sprites.
Use EarthInstance.addPoints( properties )
var mypoints = myearth.addPoints( {
points: [
{ location: {lat: 12.5, lng: 18.7}, scale: 1.5, offset: 0.25 },
{ location: {lat: 19.3, lng: 10.2}, scale: 1.3 },
{ location: {lat: 14.9, lng: 15.1}, scale: 1.3, opacity: 0.5 }
],
color: '#ff0000',
opacity: 0.75
} );
An array of objects with the following properties:
Location of the point.
0.1
Distance to the earth surface.
1
Size of the point.
#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
This value is multiplied to the scale value of all points.
#FFFFFF
This value is multiplied to the color value of all points.
1
0.0 - 1.0
This value is multiplied to the opacity value of all points.
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.
true
Example: Animatable Properties
Stops all animations of this object. To stop a specific animation use AnimationInstance.stop()
Remove all points permanently.