Transform projection from EPSG:4326 into EPSG:900913 – www.scriptscoop.net

the center of the map is redirected to another location. .i guess that this problem pertains to the projection. i tried to change the center into can anyone suggest solutions on how to solve this problem?? thnx in advance. .you are really appreciated. . by the way, i am using django framework. . vectorformats and simplejson to convert the retrieved spatial data into geojson from postgis. . If your vector data is not in EPSG:4326, you have to reproject that too. The tiles are in EPSG:900913, and you should not change that. So, I downloaded pro4js.js v1.1.0 (note the extra 'js') from here: http://trac.osgeo.org/proj4js/wiki/Download Proj4js.defs['EPSG:3009'] = '+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs', Now my example works :) It seems that the latest proj4.js is incompatible with OpenLayers 2.x. I did try the suggestions here, but my wfs wouldn't load, just returned the feature count. Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 18, 2016 @ 8:09 am