diff --git a/src/Service/BingMapManager.php b/src/Service/BingMapManager.php index 8069e1ce..6b1145b3 100644 --- a/src/Service/BingMapManager.php +++ b/src/Service/BingMapManager.php @@ -4,7 +4,35 @@ namespace App\Service; class BingMapManager implements MapManagerInterface { - public function jsDisplayMap() + public function jsGeofence() { + + echo "" . "\n"; + echo "". "\n"; + } } diff --git a/src/Service/GoogleMapManager.php b/src/Service/GoogleMapManager.php index ac02d107..8b425654 100644 --- a/src/Service/GoogleMapManager.php +++ b/src/Service/GoogleMapManager.php @@ -2,6 +2,41 @@ namespace App\Service; -class GoogleMapManager +class GoogleMapManager implements MapManagerInterface { + public function jsGeofence() + { + echo "" . "\n"; + echo "" . "\n"; + echo "". "\n"; + } } diff --git a/src/Service/MapManagerInterface.php b/src/Service/MapManagerInterface.php index fdb9bb77..10934d7a 100644 --- a/src/Service/MapManagerInterface.php +++ b/src/Service/MapManagerInterface.php @@ -4,17 +4,12 @@ namespace App\Service; interface MapManagerInterface { - /* - * Return a map to be used to display location - * - */ - public function jsDisplayMap(); /* - * Return a map with polygons to show coverage areas + * Return javascript text with map and polygons to show coverage areas * */ - //public function jsGeofence(); + public function jsGeofence(); //public function jsJobOrderDetails(); diff --git a/templates/geofence/list.html.twig b/templates/geofence/list.html.twig index 3b9e7bba..341a627b 100644 --- a/templates/geofence/list.html.twig +++ b/templates/geofence/list.html.twig @@ -39,7 +39,7 @@