Hacking Google Maps and Google Earth (ExtremeTech)
Chapter 10 — Overlaying Statistical Data 195 When parsing the list of years, instead of providing a link to select the dataset t ...
196 Part III — Google Map Hacks The result can be seen in Figure 10-6. You can see how the information is overlaid, one circle o ...
Chapter 10 — Overlaying Statistical Data 197 Using Custom Icons Polylines are an efficient way of representing information, but ...
198 Part III — Google Map Hacks Creating the Icon There is only one required element for a Google Maps icon: the icon itself. Ho ...
Chapter 10 — Overlaying Statistical Data 199 Building the Original Image Building the original image is really about choosing (o ...
200 Part III — Google Map Hacks In Photoshop, first copy the original icon into a new document. Figure 10-10 shows the canvas si ...
Chapter 10 — Overlaying Statistical Data 201 Finally, change the opacity of the shadow to between 35 percent and 50 percent to e ...
202 Part III — Google Map Hacks Remember that image sizes are specified in pixels, not latitude and longitude. Also remember tha ...
Chapter 10 — Overlaying Statistical Data 203 Using Icon Size to Represent Data To represent statistical information, you can dup ...
204 Part III — Google Map Hacks thisIcon.iconSize = new GSize(thisIcon.iconSize.width*volume, thisIcon.iconSize.height*volume); ...
Chapter 10 — Overlaying Statistical Data 205 FIGURE10-14: A close up of the icon and shadow. Wrapping Up In this chapter you hav ...
206 Part III — Google Map Hacks With all these different options in mind, it is worth remembering that plenty of other solutions ...
Building a Community Site C ommunity sites show information about a community and the facilities that it offers. The intention i ...
208 Part III — Google Map Hacks FIGURE11-1: Restaurants in Ambleside. The problem with the display is that the user only knows t ...
Chapter 11: Building a Community Site then obtains the latitude and longitude for each item by looking up the postal code, town, ...
210 Part III — Google Map Hacks use DBI; my $dbh = DBI->connect( ‘dbi:mysql:database=mapsbookex;host=db.maps.mcslp.com’, ‘map ...
Chapter 11 — Building a Community Site 211 (‘http://maps.google.com/maps?q=’. uri_escape($text)); my $var = $response->{_cont ...
212 Part III — Google Map Hacks entitylist(); } elsif(param(‘m’) eq ‘getmarkers’) { getmarkers(param(‘entity’)); } The entitylis ...
Chapter 11 — Building a Community Site 213 $sth->finish(); print(“</markers>\n”); } Before the details of the Google Ma ...
214 Part III — Google Map Hacks the visibility of stacked icons. You can see the effect in a sample of the map application show- ...
«
7
8
9
10
11
12
13
14
15
16
»
Free download pdf