Permalink
Browse files

Because I wanted to see my map of Europe :)

  • Loading branch information...
1 parent 84a9e31 commit 5d0bc121451ea2f80eb5ccc5c592d7fdcb0eb0b1 @lehrblogger committed Jan 15, 2012
Showing with 7 additions and 6 deletions.
  1. +1 −1 constants.py
  2. +5 −4 handlers.py
  3. +1 −1 static/wdyg-private.js
View
@@ -3,7 +3,7 @@
from gheatae import color_scheme
import logging
-min_zoom = 10
+min_zoom = 3
max_zoom = 18 # note that these must also be in the static wdyg-private.js file
level_const = 140. #TODO fix this from being hard coded in models.py for UserInfo - I was getting a <type 'exceptions.AttributeError'>: 'module' object has no attribute 'level_const'
View
@@ -1,3 +1,8 @@
+import os
+os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+from google.appengine.dist import use_library
+use_library('django', '1.0')
+
import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.ext import db
@@ -8,7 +13,6 @@
from google.appengine.api.urlfetch import DownloadError
from google.appengine.runtime import DeadlineExceededError
from django.utils import simplejson as json
-import os
from os import environ
import urllib
import logging
@@ -20,9 +24,6 @@
from scripts import fetch_foursquare_data
from gheatae import color_scheme, tile, provider
from models import UserInfo, UserVenue, MapImage
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
-from google.appengine.dist import use_library
-use_library('django', '0.96')
class IndexHandler(webapp.RequestHandler):
def get(self):
@@ -124,7 +124,7 @@ $(document).ready(function() {
map.setUI(customUI);
var mt = map.getMapTypes(); //http://groups.google.com/group/google-maps-api/browse_thread/thread/1fca64809be388a8
for (var i=0; i<mt.length; i++) {
- mt[i].getMinimumResolution = function() {return 10;}; // note these must also be in constants.py
+ mt[i].getMinimumResolution = function() {return 3;}; // note these must also be in constants.py
mt[i].getMaximumResolution = function() {return 18;};
}

0 comments on commit 5d0bc12

Please sign in to comment.