]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-html.php
update dependencies in vagrant provision file
[nominatim.git] / lib / template / details-html.php
index d5c1825207f65396c0ad1b1d27995da1705a4bfd..6845cbb22821df791093d0ce3b5d4a187faa2ec5 100644 (file)
@@ -6,7 +6,6 @@
        <link href="css/details.css" rel="stylesheet" type="text/css" />
 </head>
 
        <link href="css/details.css" rel="stylesheet" type="text/css" />
 </head>
 
-<?php include(CONST_BasePath.'/lib/template/includes/html-top-navigation.php'); ?>
 
 
 <?php
 
 
 <?php
 
 
 <body id="details-page">
 
 
 <body id="details-page">
+       <?php include(CONST_BasePath.'/lib/template/includes/html-top-navigation.php'); ?>
        <div class="container">
                <div class="row">
                        <div class="col-sm-10">
        <div class="container">
                <div class="row">
                        <div class="col-sm-10">
        </div>
 
        <script type="text/javascript">
        </div>
 
        <script type="text/javascript">
+       <?php
 
 
-               var nominatim_result = {
-                       outlinestring: '<?php echo $aPointDetails['outlinestring'];?>',
-                       lon: <?php echo $aPointDetails['lon'];?>,
-                       lat: <?php echo $aPointDetails['lat'];?>,
-               };
+    $aNominatimMapInit = [
+      'tile_url' => $sTileURL,
+      'tile_attribution' => $sTileAttribution
+    ];
+    echo 'var nominatim_map_init = ' . json_encode($aNominatimMapInit, JSON_PRETTY_PRINT) . ';';
 
 
+    $aPlace = [
+                       'outlinestring' => $aPointDetails['outlinestring'],
+                       'lon' => $aPointDetails['lon'],
+                       'lat' => $aPointDetails['lat'],
+    ];
+         echo 'var nominatim_result = ' . json_encode($aPlace, JSON_PRETTY_PRINT) . ';'; 
+
+
+  ?>
        </script>
 
 
        </script>