From 0b947e817d7efbacc64aede60ffdb02abdca9dd4 Mon Sep 17 00:00:00 2001 From: Sajjad Anwar Date: Tue, 18 Feb 2014 12:50:46 +0530 Subject: [PATCH] enable geonames and fix zoom level --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 165168d..1ff1d02 100644 --- a/index.html +++ b/index.html @@ -91,7 +91,7 @@ var geojsonMarkerOptions = { }, queryTokenizer: Bloodhound.tokenizers.whitespace, remote: { - url: "http://api.geonames.org/searchJSON?username=geohacker&featureClass=P&maxRows=5&countryCode=IN&name_startsWith=%QUERY", + url: "http://api.geonames.org/searchJSON?username=geohacker&maxRows=5&countryCode=IN&name_startsWith=%QUERY", filter: function (data) { return $.map(data.geonames, function (result) { return { @@ -141,7 +141,7 @@ var geojsonMarkerOptions = { map.fitBounds(datum.bounds); }; if (datum.source === "GeoNames") { - map.setView([datum.lat, datum.lng], 14); + map.setView([datum.lat, datum.lng], 15); }; if ($(".navbar-collapse").height() > 50) { $(".navbar-collapse").collapse("hide");