In my website, I wish to display a map with few markers of historicals points from a geoJson file. I start with openlayers 3 api and all is ok, it works. For the moment I use the OpenStreepMap map that I define like this :
`new ol.layer.Tile ({ title: 'OSM', type: 'base', visible: true, source: new ol.source.OSM() })` Now I want to replace the OSM map with the openTopoMap (openTopoMap) but I don't know how (can't find parameter)? Is this possible ? With what kind of source parameter ? Sorry i am a newbie.
Thanks in advance for your help
!
أكثر...
`new ol.layer.Tile ({ title: 'OSM', type: 'base', visible: true, source: new ol.source.OSM() })` Now I want to replace the OSM map with the openTopoMap (openTopoMap) but I don't know how (can't find parameter)? Is this possible ? With what kind of source parameter ? Sorry i am a newbie.
Thanks in advance for your help
أكثر...