Thursday, November 18, 2010

Real Time Tile Size for Each Zoom Level

 

The zoom level chart below is from ESRI and is for Google Map Service. 

zoom level esri

http://blogs.esri.com/Support/blogs/mappingcenter/archive/2009/03/19/How-can-you-tell-what-map-scales-are-shown-for-online-maps_3F00_.aspx

I assume this published map scale is for tiles that do not have a lot of distortion in their projection (those near equator).  A map scale changes as a ratio of length to pixel size (this ration goes up as you approach the poles because the longitudal distance approaches zero when approaching the poles, but is represents as equidistant in the Mercator Projection that Google uses. 

Also, map tile size is determined by pixels.  If you have two computer screens of the same size, but different resolution, then the map tiles will show up different size on each screen and the scales will be inherently different.

Map tiles are equally sized in each zoom level.  There is an excellent example of the google tiling scheme at maptiler.org: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/  You can also see from the shading to represent map tiles that map tiles remain a constant pixel size (256 pixel square) as you zoom in.  One tile from a previous zoom level is represented by four tiles in the next zoom level.

zoom 10

zoom11

Sunday, November 14, 2010

Quick Fix for Global Map Downloader Tool Error Message of “GPSFS to 64x64 iPhone tiles in an SQLite DB”

 

The Global Map Downloader Tool is great for creating map tiles for offline use on the iPhone.  However, if you have a 64 bit system, then you will get the following error message when you run the program:

error

To fix this error, copy the file “System.Data.SQLite.DLL” from the x64 SQLite directory to the GMDL\Bin\Debug directory as shown below:

replace GMDL

Saturday, November 6, 2010

How to Use Google Maps on the iPhone without an Internet Connection

Perhaps one of the biggest downfalls of the Maps App on the iPhone is that you need the App the most when you are in the middle of nowhere without an internet connection.  If you are willing to drop some coin, then you can buy the Tom-Tom USA app which will give you adequate mapping capability off-line.  However, it would be nice to be able to use the native iPhone Maps app.   This will never happen though as long as Tele-Atlas (the company that supplies Google with its maps) restricts caching its maps for use off-line.

You will notice that most GPS apps on the iPhone only allow you to cache maps from openstreetmap.org.  OpenStreetMap.org is an global, open sourced, community based mapping site that allows anyone to become a cartographer and contribute.  While this map is great, there are still many incomplete and inaccurate areas that you do not want to have to depend on.   How great would it be if you could use this cache function in conjunction with the iPhone?

Very great and you can do it if your iPhone is jailbroken.  Get the app “Offline Maps” from Cydia.  It is currently available at no cost and is fairly straightforward to use.

There are two ways to use the app.  You can store the Google Maps that you already have cached on your iPhone or you can upload the cache yourself (much more difficult and I will describe in detail in a latter post).

The term “cache” refers to iPhone’s temporary repository for maps so that it doesn’t have to resend a request to Google for a location you’ve already downloaded maps for.  You can take advantage of this cache using the Offline Maps app and store it offline permanently for use when you don’t have an internet connection. 

import

Scroll through the Maps App and make sure to cover all the areas (including varying zoom levels) that you would like to save offline first.  Now open up the Offline Maps app and select the Import feature under Maps.

import2

Offline Maps will now save the maps cached on your iPhone to a separately named map database of your choosing

 

import3

The maps files you saved are now stored for offline use.

import4

When you are ready to use your saved map tiles for offline use, then simply select the map tiles you want to use, then select copy when this dialog box comes up.

import5

The processing map dialog box will come up next – select Maps and your Map App will automatically load with your cached tiles visible.  That’s all you have to do!

Wednesday, November 3, 2010

Add Map to Mobile Menu Home Page

Was able to add a map with 200 pixel square dimensions to the home screen. Now need to figure out how to do if/then for map size based on mobile device use.

Sunday, October 31, 2010

Using Mobile Device Location in Google Maps

The GPS sensor on the iPhone is of great use in mobile maps.

Today I figured out how to add geolocation to my mobile maps (as well as a simple marker):