Producing Custom Maps�with Google Maps API
Pamela Fox
What We'll Talk About
Markers and Polylines
Markers and Polylines
Markers and Polylines
Markers and Polylines: Conclusion
Markers and polylines work fine for smaller, less data intensive applications.
For anything more detailed, image overlays will be a more workable solution.
Image Overlay Types
(GGroundOverlay)
���
(GTileLayer)
Single Image Overlays
Single Image Overlays: Examples
Various Uses:
With each of these examples, play with the zoom level and notice the degradation in image quality.��Interactive Fitting Tools:
�Dynamically Generated Counties Ground Overlay�With this example, play with the zoom level and notice the change in loading time for the overlay.�
Single Image Overlays: Conclusion
Single Image Overlays work well for areas that consist of a single map viewport and a single zoom setting. ��It’s easy to implement but suffers from performance issues and limited options. ��Applications that require larger coverage and multi-resolution data need a more robust solution.
Tiled Image Overlays
�Advantages:
Disadvantages:
Tiled Image Overlays: Tile Structure
��Try zooming and panning �on Google Maps with �"Outline Images" enabled�to see this in action.
Tiled Image Overlays: Tile Structure
Pixels:
Top (y): 0
Left (x): 0
Bottom: 255
Right: 255
Tile No.:
x:0 y:0
Tiled Image Overlays: Tile Structure
Tile No.:
x:0 y:0
Pixels:
Top (y): 0
Left (x): 0
Bottom: 255
Right: 255
Tile No.:
x:0 y:1
Pixels:
Top (y): 256
Left (x): 0
Bottom: 511
Right: 255
Tile No.:
x:1 y:0
Pixels:
Top (y): 0
Left (x): 256
Bottom: 255
Right: 511
Tile No.:
x:1 y:1
Pixels:
Top (y): 256
Left (x): 256
Bottom: 511
Right: 511
Tiled Image Overlays: Tile Structure
Tiled Image Overlays: Tile Structure
Tiled Image Overlays: Techniques
��
��
Tiles cut from images
Basic concept: You already have the image (often scanned in), and you use a script to cut it into multi-resolution tiles
Uses:
Advantages:
Disadvantages:
Tiles cut from images: Counties Example
Zoom 5
Zoom 6
Zoom 7
Zoom 8
Zoom 9
Tiles cut from images: Resources
Tiles cut from images: Conclusion
Tiles cut from images are useful for many purposes, but suffer when extending to more than a few zoom levels due to pixelation, and they can be difficult to align with a base map.
Static data tiles
Basic Concept: You have the data in some format, and you generate the tile layers just once from that data and store on your server.
Uses:
Advantages:
Disadvantages:
Static data tiles: Counties Example
Zoom 5
Zoom 6
Zoom 7
Zoom 8
Zoom 9
Static data tiles: Conclusion
Static tiles created from data are extremely fast and efficient, can be made to work with any zoom level and any area.
They don’t suffer from pixelation and are easily aligned to the map.
Since they require building in advance, time sensitive and user driven requirements are difficult to address.
Dynamic data tiles
Basic Concept: You have the data in some format, and you generate the tile layers dynamically (when the user requests them).
Uses:
Advantages:
Disadvantages:
Dynamic data tiles: Conclusion
�Dynamic tiles created “on the fly” offer great functionality at a stiff price - increased time to process and heavy load on the server. ��The benefits of dynamic tiles over static ones have to be weighed for each application.
Simulating Clickable Tiles
�Examples:
Learn more
http://code.google.com/intl/es/