nmedia-cdn

1.4

Configuration

<div id="carte"></div><script type="text/javascript">$(document).ready(function(){
    var mymap = L.map('carte', {
        scrollWheelZoom: false,
        center: [45.8690063, -72.4722806],
        zoom: 16,
        tap: false
    });
    
    L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
        attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'    }).addTo(mymap);
    
    var nmediaIcon = L.icon({
        iconUrl: '/_media/image/marker-nmedia.png',
        shadowUrl: '',
    
        iconSize:     [67, 83], // size of the icon
        shadowSize:   [0, 0], // size of the shadow
        iconAnchor:   [33, 82], // point of the icon which will correspond to marker's location        shadowAnchor: [0, 0],  // the same for the shadow
        popupAnchor:  [-3, -76] // point from which the popup should open relative to the iconAnchor    });
    
    L.marker([45.8690063, -72.4722806], {icon: nmediaIcon}).addTo(mymap);
    
    mymap.invalidateSize();
});
    
</script>

Versionnage

Contenu ici.

Utilisation montage HTML

<script src="https://cdn.altitude3.net/_media/Document/131.js" type="text/javascript"></script><link type="text/css" rel="stylesheet" href="https://cdn.altitude3.net/_media/StyleSheet/133.css">

Exemples

Contenu ici.