I load a picture within the "ion-scroll" tag in ionic framework. When I then try to zoom in, the picture is blurred and the letters are unreadable. This happens both in my browser as well as on android.
The code for my template:
<ion-view view-title="{{map.name}}" ng-controller="MapsCtrl">
<ion-scroll zooming="true"
direction="xy"
delegate-handle="zoom-pane"
min-zoom="1"
max-zoom="20"
scrollbar-x="false"
scrollbar-y="false"
overflow-scroll="false">
<img style="width:100%; heigth:100%" ng-src="{{map.img}}"/>
</ion-scroll>
The picture I use is 4642 x 4642 pixels, so the image should be sharp when zoomed in.
Browsers do this for performance optimization, there's no need to keep the hi-res version of the image when the page is rendered.
I was able to get around this by loading the image in full size then using the
$ionicScrollDelegate
handle to display the correctly zoomed. It isn't very elegant but it works in iOS and Android.Template
Controller