The Location API methods enable a marker indicating where the user is located in the world


(static) setUserLocation(position)

Tells the engine where the current user is located, which displays a marker in the 3D world
// Manually construct object, can also use navigator.geolocation.watchPosition
// to obtain
var position = {
  coords: {
    latitude: 46.46695,
    longitude: 7.52151,
    accuracy: 50

Procedural.setUserLocation( position );
Name Type Description
position Object An Object of the format produced by the HTML5 Geolocation API

(static) toggleUserLocationTracking()

Toggles whether the camera automatically follows the user when a new location update is sent using Procedural.setUserLocation. Initially tracking is disabled. Note tracking is automatically disabled when the user manipulates the camera