Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2318 → Rev 2319

/trunk/widget/modules/carto/squelettes/carte_defaut.tpl.html
117,7 → 117,16
</div>
</div>
<? endif ?>
<div id="carte"></div>
<div id="carte">
<div id="origine-donnees">
Observations du réseau <a href="http://www.tela-botanica.org/site:botanique"
onClick="ouvrirNouvelleFenetre(this, event)">
Tela Botanica
</a>
- Carte : <a href="http://www.openstreetmap.org/copyright" target="_blank">© les contributeurs d’OpenStreetMap</a>
- Tuiles : <a href="http://www.openstreetmap.fr" target="_blank">OsmFr</a>
</div>
</div>
<!-- +-------------------------------------------------------------------------------------------+ -->
<!-- Blocs chargés à la demande : par défaut avec un style display à none -->
/trunk/widget/modules/carto/squelettes/scripts/carto.js
19,7 → 19,8
google.maps.MapTypeId.HYBRID,
google.maps.MapTypeId.SATELLITE,
google.maps.MapTypeId.TERRAIN]
}
},
scaleControl: true
};
var ctaLayer = null;
var osmMapType = new google.maps.ImageMapType({
98,6 → 99,21
map = new google.maps.Map(document.getElementById('carte'), carteOptions);
// Ajout de la couche OSM à la carte
map.mapTypes.set('OSM', osmMapType);
 
// écouteur sur changement de fond
google.maps.event.addListener( map, 'maptypeid_changed', function() {
// licence par défaut
var mention = 'Observations du réseau <a href="http://www.tela-botanica.org/site:botanique" ' +
'onClick="ouvrirNouvelleFenetre(this, event)">' +
'Tela Botanica' +
'</a> ';
if (map.getMapTypeId() == 'OSM') {
// ajout licence OSM
mention += ' - Carte : <a href="http://www.openstreetmap.org/copyright" target="_blank">© les contributeurs d’OpenStreetMap</a>' +
' - Tuiles : <a href="http://www.openstreetmap.fr" target="_blank">OsmFr</a>';
}
$('#origine-donnees').html(mention);
});
}
 
 
/trunk/widget/modules/carto/squelettes/css/carto.css
450,3 → 450,9
white-space: pre-wrap;
width: 300px;
}
 
#origine-donnees {
bottom: 5px;
margin-left: 5px;
position: absolute;
}