vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - BBCode - GoogleMap (https://vborg.vbsupport.ru/showthread.php?t=228333)

jewelernation 11-17-2009 10:00 PM

BBCode - GoogleMap
 
1 Attachment(s)
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&mark ers=color:red|label:A|{param}&key=[YOUR-GOOGLE-KEY-HERE]&sensor=false" alt="{param}" />
Example: [googlemap]810 7 Ave, Manhattan, New York, NY 10019[/googlemap]
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

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

Quote:

Originally Posted by segwayon (Post 1921594)
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.


All times are GMT. The time now is 10:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00965 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete