[MapQuery] goto() with lat/long only

Steven M. Ottens steven at minst.net
Tue Jun 14 11:03:18 EDT 2011


  Hi all,

We decided to use lat long coordinates to prevent the whole projection 
mess. However I just tried to build an example using lat long 
coordinates 
(https://github.com/mapquery/mapquery/blob/master/demo/wms28992.html) 
and I noticed for a starter that goto(box) didn't take 
epsg:4326-coordinates but mapProjection coordinated. I've rewritten the 
goto(box) function to do so (and in the process rewritten the tests 
since they were not testing for the correct values).

The problem I now see is that you need to include proj4js in your 
application and include a Proj4js.defs["projection"] = projection 
definition. We probably don't want our users to deal with either. In my 
opinion we should somehow automate this. If you know the map.projection 
it shouldn't be too hard to get the Proj4js.defs. What do you think?

Also, please have a look at the different examples and see if they make 
sense to you.

Steven




More information about the MapQuery mailing list