Map
Description
This component represents the overall map configuration.
Name | Type | Default | Description |
---|---|---|---|
latitude | number | 37.7955281 | The latitude of the map's center |
longitude | number | -122.3934225 | The longitude of the map's center |
radius | number | 500 | The radius of the map view, in meters |
spawnLocations | boolean | false | If enabled, map points will spawn at every VPS activated location |
useGPS | boolean | true | If enabled, map will poll GPS and update latitude and longitude automatically at runtime. |
Functions
Get
Returns a read-only reference.
Example
ecs.Map.get(world, component.eid)