Moolet Moo's Online FB 1.0.2

Get Moolets
Loading Loading...
Get Moo
 
Moolets Support Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:newb - passing parameters to Google API ? (1 viewing) (1) Guests
Go to bottom Avatar Required To Post Favoured: 0
TOPIC: Re:newb - passing parameters to Google API ?
#866
Bansaw (User)
Fresh MooTooler
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:newb - passing parameters to Google API ? 1 Year ago  
This may be useful to others.
I was able to customise the Google API by adding/substituting some parameters:

echo "moolet_google_maps.setCenter(new GLatLng(-0.40, 34.67), 11);n";

the new GLatLng () function was substituted for (point) around line 131.


Because Google didn't recognise my "address" (point) , I had to manually find out what Lat/Long it was and convert it to decimal using:
http://andrew.hedges.name/experiments/convert_lat_long/

The "11" is the zoom level which I changed initially from "6")


I changed the "bubble" or "marker" to an address I wanted to display:
echo " marker.openInfoWindowHtml('My new addr, County, Country');

(around line 144)

Also have to change the new GMarker line (around line 137) from "point" to your new GLatLng (.....etc)


Hope this helps.
It seems to work OK!
 
Report to moderator   Logged Logged  
  Avatar Required To Particpate
      Topics Author Date
    thread link
newb - passing parameters to Google API ?
Bansaw 2007/12/13 16:52
    thread link
thread linkthread link Re:newb - passing parameters to Google API ?
Bansaw 2007/12/13 16:57
    thread link
thread linkthread link Re:newb - passing parameters to Google API ?
Bansaw 2007/12/15 12:00
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Page loading, please wait...