Open mattfullerton opened 9 years ago
I managed to solve my problem by commenting out this line: https://github.com/ckan/ckanext-geoview/blob/master/ckanext/geoview/public/js/vendor/ol-helpers/ol-helpers.js#L371
Perhaps because we're not using OSM base layer but rather MapQuest...???
A slightly more intelligent approach that is allowing me to use two different WMS sources is to set projection: Mercator only when the layer states that srs.EPSG:3857 = True, otherwise set it to null.
Hey Matt, you may be interested in a recent feature (not yet merged, still in pduchesne/ckanext-geoview) where you can define basemaps with arbitrary projections, provide a list of basemaps and switch between them while in the view. Not completely tested yet, but you can already give it a go using the master of pduchesne/ckanext-geoview
I was never able to tell how the data was being transformed with the old wms_view extension because there was no base layer. Now, I see that it is offset (for one source slightly, for another it would appear so badly that I see no data in the image).
Example: https://smartlane.io/dataset/different-geo-visualizations/resource/045d88a8-6a1e-4f41-b23c-fa5efa549d34?view_id=1a3ce747-e55d-4383-b29c-e8ea70f8d70e
(Select Hamburger Autobahn...ohne Verkehrslagedaten) as that should line up with the motorways)