Instead of setting `'SRS':'EPSG:2180'` on the source's `params` object literal, set `projection: 'EPSG:2180` on the source's configuration object. You will need proj4.js or a transform between EPSG:2177 and EPSG:2180 for this to work.
Andreas. On Sun, Aug 21, 2016 at 6:32 PM, Michal Michalowski via OL3 Dev <ol3-dev+apn2wqceqyv4a3lue7yehbcvymxdtjzzhwtu-q_g1jkrl1mzmusmd...@googlegroups.com> wrote: > Hello. > > I have problem with configuration one of my services in OL3. > > My application runs in projection EPSG:2177 and i`m trying to get one of the > services in anoter projection (EPSG:2180) - OL3 3.17.1. > > Below is the url with correct answer form server: > http://mapy.zabytek.gov.pl/AZP/service.svc/get?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=Sekcja_arkusza_AZP&SRS=EPSG:2180&BBOX=378933.442960105,483874.514435803,385658.442960105,485130.764435803&WIDTH=1076&HEIGHT=201&TRANSPARENT=TRUE&FORMAT=image/png&styles= > > My object configuration in OL3: > > new ol.layer.Image( {title:'Arkusze Archeologicznego Zdjęcia Polski (AZP)', > visible : false, zIndex : 1010, opacity: 1, > source : > new ol.source.ImageWMS({ url : > 'http://mapy.zabytek.gov.pl/AZP/service.svc/get',ratio: 1, > params : {'LAYERS' : 'Sekcja_arkusza_AZP', > 'SRS':'EPSG:2180', > VERSION:'1.1.1', > FORMAT: 'image/png' } }) > }) > > > Below is URL generated from my application: > > http://mapy.zabytek.gov.pl/AZP/service.svc/get?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=Sekcja_arkusza_AZP&SRS=EPSG%3A2177&STYLES=&WIDTH=1053&HEIGHT=176&BBOX=6432796.159999999%2C5786350.079999999%2C6470535.679999999%2C5792622.079999999 > > I know the problem is in SRS and BBOX - how can i set parameter of SRS (or > CRS) as EPSG:2180 and the bbox properties. > > Thanks Michal > > -- > You received this message because you are subscribed to the Google Groups > "OL3 Dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/ol3-dev. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ol3-dev/233c7713-2b78-421d-b6ce-d9f218b2bca6%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Andreas Hocevar Geospatial Solutions Engineer | Boundless [email protected] @boundlessgeo -- You received this message because you are subscribed to the Google Groups "OL3 Dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ol3-dev. To view this discussion on the web visit https://groups.google.com/d/msgid/ol3-dev/CAOiJ94jdOd%2BHzxFG_4_sz3XqoM6jW5s0Sn_Qi8WTz4h%3D8oZO3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
