Mapping - omeka-s - default view


#1

HI,

I would like the default view of the Mapping being the satellite one.

I have a geographical location for each item of an item-set. So the map has not been added on a specific page but is part of an item-set.

Even when I choose the satellite view manually and i save this choice, when i go on the public view to check, the mapping appears on the default view i.e the streets one.

I tried to change this on the files on the files of the module but could not find the place to write this.
Thanks if you can give me the answer.

Emilie


#2

For those who have the same question, I found the solution :

You need to change the 2 files.php on the module :
==> mapping-forms.js
==> mapping-show.js
In the tag (« map.addLayer(baseMaps[’Streets’]) replace Streets by Satellite.
And modify the order of the array containing the layers i.e :

Replace :
var baseMaps = {
‘Streets’: L.tileLayer.provider(‘OpenStreetMap.Mapnik’),
‘Satellite’: L.tileLayer.provider(‘Esri.WorldImagery’),
‘Grayscale’: L.tileLayer.provider(‘OpenStreetMap.BlackAndWhite’),
‘Terrain’: L.tileLayer.provider(‘Esri.WorldShadedRelief’)

By :
var baseMaps = {
‘Satellite’: L.tileLayer.provider(‘Esri.WorldImagery’),
‘Streets’: L.tileLayer.provider(‘OpenStreetMap.Mapnik’),
‘Grayscale’: L.tileLayer.provider(‘OpenStreetMap.BlackAndWhite’),
‘Terrain’: L.tileLayer.provider(‘Esri.WorldShadedRelief’)