The Geomock project is a little plaything that allows you to mock your location in the browser. Activating Geomock pops up a window with a Google Map. The blue bouncing icon represents your current position. Clicking anywhere else on the map produces a pink icon, which represents your mocked location.
Geomock overrides your browser's native
watchPosition() calls with its own faked versions, so your code doesn't have to change.
The returned mock position object has the basic properties that you would expect from a successful return from the original functions, ie. stuff like latitude and longitude are present.
#How to use:
Click somewhere on the map to select the location you want to appear to be at
Your code should report you being at that location instead
Geomock.js only affects calls to
geomock.go() has been called.
- How do we make it take effect on calls to
watchPosition()that are already in progress?