From 21e1787258decb1b98b92bf4ac874f2d7bdc4642 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 9 Jul 2015 20:12:52 +0000 Subject: [PATCH] User with mode edition could only update gps --- .../default/scripts/identite/carte.phtml | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/application/views/default/scripts/identite/carte.phtml b/application/views/default/scripts/identite/carte.phtml index 6da85b812..4e36e039a 100644 --- a/application/views/default/scripts/identite/carte.phtml +++ b/application/views/default/scripts/identite/carte.phtml @@ -170,37 +170,19 @@ $(document).ready(function(){ function createMarker(m){ + // --- Info Window, Create event marker + var 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: $('') + 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 }