Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-add mouse latlng example #1171

Closed
abenrob opened this issue Apr 20, 2015 · 4 comments
Closed

Re-add mouse latlng example #1171

abenrob opened this issue Apr 20, 2015 · 4 comments
Milestone

Comments

@abenrob
Copy link

abenrob commented Apr 20, 2015

https://www.mapbox.com/mapbox-gl-js/example/mouse-latlng/

Throwing "Uncaught TypeError: Cannot read property 'lat' of undefined"

Example not using the referenced map.unproject method.

@jfirebaugh
Copy link
Contributor

The issue is that latLng is a recent addition (1c086b1) and is not in a released version yet. But this example duplicates the mouse-position example, which is working. @tmcw -- Can we remove it?

@tmcw
Copy link
Contributor

tmcw commented Apr 20, 2015

Yeah.. revert it for now, re-add it on release. Got pwned by working on a local copy.

tmcw added a commit that referenced this issue Apr 20, 2015
@tmcw tmcw changed the title Mouse LatLng example throwing errors Re-add mouse latlng example Apr 20, 2015
@tmcw tmcw added this to the 0.8 milestone Apr 20, 2015
@jfirebaugh
Copy link
Contributor

How about just port the improvements (using latLng, better CSS) to the existing example: https://www.mapbox.com/mapbox-gl-js/example/mouse-position/

This can happen right now, on the master branch.

@jfirebaugh
Copy link
Contributor

d5462e2, #1222.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants