Leaflet map with WMS and custom projection -
i have implemented map using leaflet , tiles wms-service. offer list of projections, of 1 usable in standard leaflet epsg:4326.
however, map looks bit distorted, , recon 1 of other projections better. supplier of maps uses epsg:32624, cannot seem projection right.
this complete list: epsg:32624, epsg:32619, epsg:32620, epsg:32621, epsg:32622, epsg:32623, epsg:32624, epsg:32625, epsg:32626, epsg:32627, epsg:4326, epsg:3413, epsg:3575
i have fiddle here: http://jsfiddle.net/uyrv2j7f/2/
there 2 maps, top 1 using desired projection, not working. bottom 1 using working, distorted projection.
i'm quite sure, need edit configuration of crs. what? find info?
i have found first part here: http://spatialreference.org/ref/epsg/wgs-84-utm-zone-24n/ - rest have nicked examples using other projections.
var crs = new l.proj.crs('epsg:32624', '+proj=utm +zone=24 +ellps=wgs84 +datum=wgs84 +units=m +no_defs', { resolutions: [ 2116.670900008467, 1058.3354500042335, 529.1677250021168, 264.5838625010584, 132.2919312505292, 66.1459656252646, 26.458386250105836, 13.229193125052918, 6.614596562526459, 2.6458386250105836, 1.3229193125052918, 0.6614596562526459, 0.33072982812632296, 0.21166709000084669 ], transformation: new l.transformation(1, -500, -1, 7017000) });
hope can me out.
alternatively: leaflet works charm me , preferred library case. should bee able med out using different library, i'd interested.....
update: tinproject gave pointers, went looking, , version closer wanted result: http://jsbin.com/rehoxu/5/edit?html,css,js,output
i'd still inputs on how define variables custom-projections though...
Comments
Post a Comment