Set extent to view:
var view = new ol.View({ projection: 'EPSG:3857', center: center, zoom: 11, minZoom: 11, extent : [ LeftPointX, LeftPointY, RightPointX, RightPointY ], maxZoom: 16 });When I zoom map on left corner areas and trying to drag map, the position when I focused is lost. Map goes to another coordinate. When I remove view.extent It works normaly.
Examples here:
أكثر...
var view = new ol.View({ projection: 'EPSG:3857', center: center, zoom: 11, minZoom: 11, extent : [ LeftPointX, LeftPointY, RightPointX, RightPointY ], maxZoom: 16 });When I zoom map on left corner areas and trying to drag map, the position when I focused is lost. Map goes to another coordinate. When I remove view.extent It works normaly.
Examples here:
أكثر...