superset icon indicating copy to clipboard operation
superset copied to clipboard

deck.gl Geojson map does not autozoom, unresponsive to manual pan/zoom

Open haaspt opened this issue 7 years ago • 4 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [x] I have reproduced the issue with at least the latest released version of superset.
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version

0.29.0rc7

Expected results

Mapbox map should autozoom to rendered polygon, and allow users to pan and zoom the map after rendering.

Actual results

After running the query the map remains zoomed all the way out and does not allow a user to manually move or zoom the map with their mouse.

Steps to reproduce

  1. Create a sample geojson polygon like {"type": "Feature", "properties": {}, "geometry": {"type": "Polygon", "coordinates": [[[-149.95132113447022, 61.1310423022678], [-149.95386039742468, 61.12975642234931], [-149.9529189574033, 61.128200857856946], [-149.94943860572158, 61.12793112735274], [-149.9468993514573, 61.12921688848983], [-149.94784044016444, 61.1307724989074], [-149.95132113447022, 61.1310423022678]]]}}
  2. Try to visualize it using the deck.gl Geojson visualization
  3. Attempt to move the map

Workaround: The correct map placement can be selected using another deck.gl map like Polygon, then switching to the Geojson viz. The map will still be stuck, but will display the rendered polygons.

This is the only potentially related debug log I could find from the browser:

Could not auto zoom Error: "viewport-mercator-project: assertion failed."
	r https://<redacted-url>/static/assets/<redacted-url>dist/2.bdc48223eeb8dd8a3378.chunk.js:2
	R https://<redacted-url>/static/assets/dist/2.bdc48223eeb8dd8a3378.chunk.js:2
	value https://<redacted-url>/static/assets/dist/2.bdc48223eeb8dd8a3378.chunk.js:2
	a https://<redacted-url>/static/assets/dist/2.bdc48223eeb8dd8a3378.chunk.js:2
	fitViewport https://<redacted-url>/static/assets/dist/32.84540ae242bf42e81864.chunk.js:1
	value https://<redacted-url>/static/assets/dist/32.84540ae242bf42e81864.chunk.js:1
	_i https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	Yi https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	eo https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	Lo https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	Ro https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	da https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	ua https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	Oo https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	enqueueSetState https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	setState https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	onStateChange https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	y https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	r https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	dispatch https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	g https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	a https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	P https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	l https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
 32.84540ae242bf42e81864.chunk.js:1:5946
	fitViewport https://<redacted-url>/static/assets/dist/32.84540ae242bf42e81864.chunk.js:1
	value https://<redacted-url>/static/assets/dist/32.84540ae242bf42e81864.chunk.js:1
	_i https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	Yi https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	eo https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	Lo https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	Ro https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	da https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	ua https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	Oo https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	enqueueSetState https://<redacted-url>/static/assets/dist/vendors-major.466faea6a01cfd865d63.chunk.js:2
	setState https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	onStateChange https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	y https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	r https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	dispatch https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	g https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	a https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	P https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2
	l https://<redacted-url>/static/assets/dist/explore.e8aeacc5ce586936c4bc.entry.js:2

haaspt avatar Feb 28 '19 21:02 haaspt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar May 03 '19 18:05 stale[bot]

Can we reopen this issue? I have encountered the exact same problem.

  • deck.gl Geojson map does not autozoom, unresponsive to manual pan/zoom.

mdZ01 avatar Jun 14 '19 17:06 mdZ01

Being able to visualize a plain geospatial data source from GeoJSON (but also from other geospatial sources, like PostgreSQL+PostGIS) is a fundamental feature.

So, leaving this issue open (.pinned) is the least one can do.

sfkeller avatar Oct 17 '19 19:10 sfkeller

I had a same issue, but solved it via adding deck.gl Geojson into deck.gl Multiple Layers

mancubus77 avatar Jan 07 '20 04:01 mancubus77