27.10.2014 Views

Google Maps API 3

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

•INDEX<br />

creating zoom-in link in InfoWindow,<br />

150—155<br />

listeners<br />

adding in <strong>Google</strong> <strong>Maps</strong> <strong>API</strong>, 81<br />

addListenerOnce method, 20<br />

changing PolygonOptions property<br />

values, 174<br />

event listeners, 81<br />

event namespace, 272<br />

literals, object see object literals<br />

lng method, LatLng object, 274<br />

calculating current map boundaries,<br />

184<br />

load event, window object, 80, 137<br />

making code run on Page Load, 40—41<br />

load method, google<br />

IP-based geocoding, 229, 230<br />

localizing<br />

determining language to display user<br />

interface, 31<br />

location<br />

ClientLocation object, 230<br />

creating location-aware map, 230—233<br />

finding location of user, 229—241<br />

IP-based geocoding, 229—230<br />

GeocoderLocationType class, 272<br />

geocoding, 211—222<br />

reverse geocoding, 223—227<br />

location property<br />

GeocoderGeometry object, 271<br />

GeocoderRequest object, 269<br />

location_type property<br />

GeocoderGeometry object, 271<br />

long_name property<br />

GeocoderAddressComponent object,<br />

271<br />

longitude, 4<br />

longitude property<br />

ClientLocation object, 230<br />

LatLng object, 38, 185<br />

loops, JavaScript, 85<br />

creating array of markers, 190, 198<br />

extracting coordinates from array, 87<br />

for loops, 85<br />

generating markers within current<br />

viewport, 185—186<br />

while loops, 85<br />

loose typing<br />

variables, JavaScript, 32<br />

•M<br />

map container, 37—38<br />

MapOptions properties controlling, 61—<br />

62<br />

Map object, 244—247<br />

constructor, 37, 244<br />

controlling map settings with methods,<br />

63—72<br />

controls property, 246<br />

creating maps, 10<br />

events, 80, 247<br />

fitBounds method, 97, 245<br />

getBounds method, 9, 245<br />

getCenter method, 64, 245<br />

getDiv method, 245<br />

getMapTypeId method, 65, 245<br />

getProjection method, 245<br />

getStreetView method, 245<br />

getZoom method, 64, 245<br />

initializing map, 37<br />

mapTypes property, 246<br />

markers, 12<br />

methods, 245, 246<br />

overlayMapTypes property, 246<br />

pan methods, 245<br />

properties, 246<br />

setCenter method, 10, 64, 68, 246<br />

setMapTypeId method, 65, 69, 246<br />

295

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!