Going through Google Maps API tutorial, stuck at first step, example has problems -


i experimenting google maps api because need integrate them in website.

i copied , pasted code here in page:

https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple.

i took code javascript , html tab , copied blank html file. doing so, input text box , geocode button appear.

it not browser issue because tried more one. got no obvious errors on page checking firefly in opera.

i put alert @ end of every function , seem called when expected. alerts have been removed in case wants take @ code in page.

i not able more specific, because have started @ map api today , don't know way around much.

my page copied , pasted code here:

http://velositeraptor.com/gymfit/trainer/geotest.html

it helpful if helped me through first step take there.

thanks!

on viewing source code, seems your path reference stylesheet wrong.

<link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet"> 

check browser console error.

error: failed load resource: server responded status of 400 (bad request) http://velositeraptor.com/maps/documentation/javascript/examples/default.css


width , height mandatory google map's div (#map-canvas), remaining things works perfectly.

check jsfiddle.

better go inline styles like

<div id="map-canvas" style="width: 300px; height: 300px;"></div> 

hope understand.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -