I'm interested in displaying only the boundaries, coastlines and between countries, of the world through OSM. I'm a bit lost and I don't know what I should do.
I'm trying to display the OSM through OpenLayers on a website.
This is how I displayed the map through OpenLayers
var view = new ol.View({
center: istanbul,
zoom: 6
});
var map = new ol.Map({
target: 'map',
layers: [
new ol.layer.Tile({
preload: 4,
source: new ol.source.OSM() //OpenStreetMap here
})
],
// Improve user experience by loading tiles while animating. Will make
// animations stutter on mobile or slow devices.
loadTilesWhileAnimating: true,
view: view
});
{}button that enables you to format any highlighted code nicely. – PolyGeo Jun 27 '17 at 11:21