Location-based AR from AR.js - A-Frame components.
A-Frame components include:
locar-webcam
representing the webcam feedlocar-camera
representing a GPS-enabled cameralocar-entity-place
allowing entities to be positioned using latitude and longitude.
The latter two are more or less equivalent to the original AR.js gps-new-camera
and gps-new-entity-place
components but with some parameter changes.
A-Frame component representing a webcam feed. Must be added to an A-Frame scene entity.
Parameters:
idealWidth
(number) - ideal webcam feed to useidealHeight
(number) - ideal webcam height to usevideoElement
(string) - selector representing a video element to stream to, otherwise a video element is created.
A-Frame component representing a GPS-aware camera.
Must be added to an A-Frame camera entity e.g. <a-camera>
or <a-entity camera>
Parameters:
simulateLatitude
(number) - fake latitude to usesimulateLongitude
(number) - fake latitude to usesimulateAltitude
(number) - fake altitude to usepositionMinAccuracy
(number) - minimum accuracy in metres for GPS positions to be accepted.
A-Frame component representing an entity which can be added at a given latitude and longitude.
Parameters:
latitude
(number) - latitude of the entitylongitude
(number) - longitude of the entity