PDA

View Full Version : BB Code Enhancements - BBCode - GoogleMap


jewelernation
11-17-2009, 10:00 PM
I have created and would like to share my BBCode for inserting a static Google Map.

Title: GoogleMap
BB Code Tag Name: googlemap
Replacement: <img src="http://maps.google.com/maps/api/staticmap?center={param}&zoom=13&size=400x400&markers=color:red|label:A|{param}&key=[YOUR-GOOGLE-KEY-HERE]&sensor=false" alt="{param}" />
Example: 810 7 Ave, Manhattan, New York, NY 10019
Description: Use this code to add a Google Map to your sublease posting
Use {option}: No
Button Image (Optional): see attached image we use
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes

MAKE SURE TO REPLACE "[YOUR-GOOGLE-KEY-HERE]" in the replacement section. Sign Up for the Google Maps API (http://code.google.com/apis/maps/signup.html)

csrs
11-18-2009, 08:51 PM
Doesnt work for me

Hasanudin
11-25-2009, 12:55 PM
not work too..

Edrondol
11-25-2009, 01:21 PM
Doesn't work for me, either.

segwayon
11-26-2009, 04:22 AM
I got it to work: There's an extra space in the code which needs to be removed:

You posted: " . . .& key= . . ."

Remove the space between the & and the key=

so that it looks like this:

" . . .&key= . . ."

segwayon
11-27-2009, 12:13 PM
Anyone have any suggestions on how to alter this code so that the map is not static but allows for zooming and panning, etc?

kalisekj
11-28-2009, 03:43 PM
Works great removed the space as required and did not add the [ ] just your key and it works like a charm. Great for real estate Web sites for exact position on a house for sale or rent.

davew
11-28-2009, 09:50 PM
Very cool!!
Thank you..
I second the question about zoom etc :)

benstillman
02-11-2010, 04:32 PM
Anyone have any suggestions on how to alter this code so that the map is not static but allows for zooming and panning, etc?

+1

I could definitely use the zoom in/out feature.