how can i Restrict map to show only the selected country?
问题 I am trying to make web map application with openlayers 3. I have a problem which i want to fix. I am loading OSM layer as my base map of the application. But the problem with the OSM layer is that it shows whole world and I can pan my map all around the world. I want my application to be fixed in certain part. I have map extent set but still it doesn't work. I am using minZoom but it doesn't help. Is there any other way to fix this prolem? var centerpos = [84.2, 28.2]; var newpos = ol.proj