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?
newb - passing parameters to Google API ? (1 viewing) (1) Guests
Go to bottom Avatar Required To Post Favoured: 0
TOPIC: newb - passing parameters to Google API ?
#857
Bansaw (User)
Fresh MooTooler
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
newb - passing parameters to Google API ? 11 Months, 1 Week ago  
I want to pass parameters to indicate what zoom level I want to start at, and also that I want my map to be a 'hybrid' map.

How do I do this with the Moolet plugin?
Is it possible?

Thanks (great extension)!
 
Report to moderator   Logged Logged  
  Avatar Required To Particpate
#858
Bansaw (User)
Fresh MooTooler
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:newb - passing parameters to Google API ? 11 Months, 1 Week ago  
I just realised that the topic below asked a similar question.....
I'll have a go at that solution.
 
Report to moderator   Logged Logged  
  Avatar Required To Particpate
#866
Bansaw (User)
Fresh MooTooler
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:newb - passing parameters to Google API ? 11 Months, 1 Week 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
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Page loading, please wait...