react-map-gl-geocoder: viewport-mercator-project: assertion failed.
After click on a result from the geocoder, I’m getting this error:
assert.js:3 Uncaught Error: viewport-mercator-project: assertion failed.
at assert (assert.js:3)
at pixelsToWorld (web-mercator-utils.js:194)
at WebMercatorViewport.unproject (viewport.js:102)
at InteractiveMap._onMouseClick (interactive-map.js:265)
at Array.<anonymous> (event-manager.js:360)
at Manager.emit (hammer.js:2525)
at TapRecognizer.emit (hammer.js:2130)
at TapRecognizer.tryEmit (hammer.js:1572)
at TapRecognizer.<anonymous> (hammer.js:2109)
at boundFn (hammer.js:197)
And the whole screen is turning white.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (6 by maintainers)
Good news is that your demo code works fine on my environment… so I guess I’ll start replacing stuff line by line until I find the culprit…
I’ll let you know what I find, and thanks again for your help
That is because your latitude and longitude are incorrect. So it is not a real place you have set.