User with mode edition could only update gps
This commit is contained in:
parent
4874a840dc
commit
21e1787258
@ -170,37 +170,19 @@ $(document).ready(function(){
|
||||
|
||||
|
||||
function createMarker(m){
|
||||
// --- Info Window, Create event marker
|
||||
var icon = $('<img src="' + m.icon + '">');
|
||||
//.tooltip({title: 'Hello, world!', trigger: 'click'})
|
||||
|
||||
// --- Marker options
|
||||
var marker = new ol.Overlay({
|
||||
position: ol.proj.transform([2, 46], 'EPSG:4326', 'EPSG:3857'),
|
||||
element: $('<img src="http://extranet.scores-decisions.com/themes/default/images/maps/siege1.png">')
|
||||
element: icon
|
||||
});
|
||||
map.addOverlay(marker);
|
||||
// --- Info Window
|
||||
// --- Create event marker
|
||||
// --- Extend map by adding marker
|
||||
|
||||
}
|
||||
|
||||
//--- Create Marker
|
||||
function createMarker(m) {
|
||||
// --- Marker options
|
||||
var marker = new google.maps.Marker({
|
||||
map: map,
|
||||
position: m.location,
|
||||
title: m.title,
|
||||
icon: m.icon,
|
||||
});
|
||||
// --- Info Window
|
||||
var infowindow = new google.maps.InfoWindow({
|
||||
content: m.text
|
||||
});
|
||||
// --- Create event marker
|
||||
google.maps.event.addListener(marker, 'click', function() {
|
||||
infowindow.open(map, marker);
|
||||
});
|
||||
// --- Extend map by adding marker
|
||||
zoneMarker.extend(marker.getPosition());
|
||||
//ol.control.ZoomToExtent ol.extent.boundingExtent
|
||||
}
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user