Places globe Class
Displays a globe, using planetary.js
Constructor
Places globe
-
[options]
Parameters:
-
[options]
Object optionalused to pass options
-
[countryCode='US']
String optionalthe initial country to rotate to and highlight
-
[highlight={US:true}]
Array optionalpairs of {countryCode: color}, if color is true then state.colors.highlight is used. This is modified by the default handler for beforeRotateToCountry added by this tool.
-
[radius=0.9]
Number optionalThe radius of the globe, as a fraction of Math.min(canvas.width, canvas.height) / 2.
-
[durations]
Number optionalThe duration of rotation animation (it all rhymes baby)
-
[colors]
Object optionalcolors for the planet
-
[pings]
Object optionaldefault options for any pings added with addPing
-
[shadow]
Object optionalshadow effect configuration
-
[onReady]
Q.Event optionalthis event occurs when the globe is ready
-
[onSelect]
Q.Event optionalthis event occurs when the user has selected a country or a place on the globe. It is passed (latitude, longitude, countryCode)
-
[beforeRotate]
Q.Event optionalthis event occurs right before the globe is about to rotate to some location
-
[beforeRotateToCountry]
Q.Event optionalthis event occurs right before the globe is about to rotate to some country
-