]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
Merge pull request #362 from mtmail/fix-timeout-on-detail-pages
[nominatim.git] / lib / template / search-html.php
index e99807965b4daf4c72d7e39bd73cfd54c525d130..8b995b626faa70832b2bd4a2848a38866408e03c 100644 (file)
@@ -14,7 +14,7 @@
                <div class="form-group">
                        <input id="q" name="q" type="text" class="form-control input-sm" placeholder="Search" value="<?php echo htmlspecialchars($sQuery); ?>" >
                </div>
-               <div class="form-group">
+               <div class="form-group search-button-group">
                        <button type="submit" class="btn btn-primary btn-sm">Search</button>
                        <?php if (CONST_Search_AreaPolygons) { ?>
                                <!-- <input type="checkbox" value="1" name="polygon" <?php if ($bAsText) echo "checked='checked'"; ?>/> Highlight -->
@@ -28,7 +28,7 @@
                                </label>
                        </div>
                </div>
-               <div>
+               <div class="search-type-link">
                        <a href="<?php echo CONST_Website_BaseURL; ?>reverse.php?format=html">reverse search</a>
                </div>
        </form>
@@ -99,7 +99,9 @@
                $aNominatimMapInit = [
                        'zoom' => $iZoom,
                        'lat' => $fLat,
-                       'lon' => $fLon
+                       'lon' => $fLon,
+                       'tile_url' => $sTileURL,
+                       'tile_attribution' => $sTileAttribution
                ];
                echo 'var nominatim_map_init = ' . json_encode($aNominatimMapInit, JSON_PRETTY_PRINT) . ';';