I use default ol3 projection for the view projection = ol.proj.get(
'EPSG:3857');
In fact you can simply remove projection parameter on view creation.
2016-07-11 16:16 GMT+02:00 ya nn via OL3 Dev <
ol3-dev+apn2wqdza3gjik3pznh7ppisoocoedhr0rnqodj4nyxhebawxsavy...@googlegroups.com
>:
> Hello,
>
> I got same need as you, to display Zoomify-Tiles on top of an OSM base
> layer. Did you find any solution ?
> For simple image file I could get it pretty simply :
>
>
> var extent = ol.proj.fromLonLat(e.zone.startCoord).concat(
> ol.proj.fromLonLat(e.zone.endCoord));
>
> var source = new ol.source.ImageStatic({
> url : url,
> imageSize : [img_width, img_height],
> imageExtent: extent
> });
> var imageLayer = new ol.layer.Image({
> source : source
> });
>
> var osmLayer = new ol.layer.Tile({
> source: new ol.source.OSM()
> });
>
> var view = new ol.View({
> projection: projection,
> center : ol.extent.getCenter(extent)
> });
>
> var map = new ol.Map({
> layers : [osmLayer, imageLayer],
> target : 'map',
> view : view
> });
>
> map.getView().fit(extent, map.getSize());
>
>
>
> But for Zoomify-Tiles I can't get to any solution. I think I will have to
> convert my image into georeferenced XYZ-Tiles.
>
>
> On Monday, September 15, 2014 at 3:01:18 PM UTC+2, jacmendt wrote:
>>
>> Hey List,
>>
>> I would like to do some clientside image transformation. In detail I
>> would like to consume for example Zoomify-Tiles or an image file,
>> georeference them on the fly on the clientside (I already know the
>> georeference parameter) and display them on top on an OSM / ... / base
>> layer. I started to experiment for this with the canvas renderer and I can
>> do there transformations with the transform method and the
>> precompose/postcompose, but so far i couldn't display a Image or
>> Zoomify-Layer (Pixel-Projection) on top of an georeferenced base layer.
>>
>> Propably this is not an easy task and it would need some work. But for
>> our use case it would be a big improvement and I would like to dig a bit
>> deeper in this scenario. Maybe somebody could give me some advice or tips,
>> where would be the best point to dig in deeper.
>>
>> Kind regards,
>>
>> JM
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "OL3 Dev" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ol3-dev/8cjxpJofGRc/unsubscribe.
> To unsubscribe from this group and all its topics, 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/0f5111fa-96b0-4df4-a6f6-22de22fb7790%40googlegroups.com
> <https://groups.google.com/d/msgid/ol3-dev/0f5111fa-96b0-4df4-a6f6-22de22fb7790%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAJuTta_vyROBz5gM%3Dqq27cranLt-57CUU4sG_FS0QzBsRuRcFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.