Andreas Hocevar
Andreas Hocevar
You need to prefix the grid key with a `@`. In your def, it should be `+nadgrids=@key,null`. Also make sure you don't perform the transform before the key is registered...
What happens if you change that snippet you cited above to ```js // Explicitly skip datum transform by setting 'datum=none' as parameter for either source or dest if (source.datum_type ===...
A possible workaround would be to define `EPSG:3857` differently: ```js proj4.defs('EPSG:3857', '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +datum=WGS84 +wktext +no_defs'); ```
@chvarma80 Give it a try. Are you working with OpenLayers?
@th30d0r Does the workaround work for you? Removing that if-block wouldn't be a good idea, because it would mean that we always try to apply a datum transform even if...
@chvarma80 Please don't reply by e-mail, because that does not support images and also your projection string is obfuscated (`+nadgrids=@something`?).
@chvarma80 Is EPSG:3857 your destination projection? If so, there is no need to reproject an OSM tile layer, because that is in EPSG:3857 already. So I suspect you're indeed facing...
Sounds good @mourner. If you have ideas that you can turn into pull requests, that would be awesome!
I will try to publish a new version later this month.
proj4js does not ship with projection definitions. The result depends on the definition you provide. You should be able to use the same projection definition as in QGIS, and then...