Geonode: Maps migrated from GeoExplorer don't display the correct initial extent in MapStore

Created on 9 Oct 2019  路  8Comments  路  Source: GeoNode/geonode

Expected Behavior

A migrated GeoNode database has existing maps which should be open correctly in MapStore.

Actual Behavior

MapStore open the maps and load the layers but the initial extent of the map is not used.

Steps to Reproduce the Problem

  1. Create a map using the GeoExplorer client
  2. Open the map with MapStore client

Specifications

  • GeoNode version: master
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker): manual
  • Platform: Ubuntu
  • Additional details:
minor

All 8 comments

I am looking into this and hope to provide a fix.

great @capooti I'm facing this as well!

this is weird. In my case I made a test with a map (migrated from 2.4).

Its center coordinates are:

x: -8270118.6203211
y: 510731.02638314
EPSG:900913

GeoExplorer opens this correctly. If I open this map using MapStore, it fails to get to the correct center point but it goes to a totally different extent.

If I make a small changes to its x MapStore will correctly show the right extent:

x: -8269637.65611
y: 510731.02638314
EPSG:900913

I am not sure from what this can depend: maybe some bug in the javascript proj library?

Let's wait from a reply from the MapStore guys - who can use the first pair of coordinates to replicate the issue - just change them in a freshly created map from MapStore.

thanks @capooti . okay if we label as major? As this might affect everybody who migrates from older geonode?

@capooti any news on this?

Unfortunately I didn't have time to investigate and for now we are still using the GeoExplorer client for the instance on which we were planning to start using MapStore. GeoExplorer is not affected by this issue. I am sure @afabiani and other MapStore developers will help on this soon

If I make a small changes to its x MapStore will correctly show the right extent:

x: -8269637.65611
y: 510731.02638314
EPSG:900913

I am not sure from what this can depend: maybe some bug in the javascript proj library?

My guess is it's the save() which updates/sets some needed relation.

thanks a lot @afabiani it works well now!
though maybe it looks still a bit slower than GeoExplorer but I am sure you will improve it :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

frafra picture frafra  路  10Comments

ingenieroariel picture ingenieroariel  路  10Comments

malnajdi picture malnajdi  路  3Comments

cezio picture cezio  路  6Comments

pjduplooy picture pjduplooy  路  7Comments