![]() |
Embed Interactive SAVED Google Maps
1 Attachment(s)
Per request: This embeds an interactive Google Map which you have previously created and saved to your "My Maps".
Admin CP --> Custom BB Codes --> Add New BB Code Title: Saved Map BB Code Tag Name: savedmap Replacement: <div align="center" style="margin: 5px 5px 5px 5px;"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%"> <tr> <td class="thead" style="text-align:center"><iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?{param}&output=embed"></iframe> </td> </tr> </table> </div> </div> Example: [savedmap]source=ig&hl=en&ie=UTF8&hq=&hnear=Browns+Summit,+N C&gl=us&ei=5Pw5S5CTGI3ilAfR 8_GgBw&ved=0CAsQ8gEwAA&msa=0&msid=1082868885536792 96824.00047bd3022f955f5a820&ll =36.75539,-81.285095&spn=0.792197,1.149445&z=10[/savedmap] Description: This will insert a saved Google map Use {option}: No Button Image (Optional): whatever 20x20 image you want, or none 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 Edited per trumpetrhapsody's recommendation. |
Thank you!
|
works perfectly!
|
Glad to hear.
|
Installed!
Thank you very much! :D |
Hi.
For me it did not work at first. In the cms it messed around with the background. On carefull inspection I found a </Div> at the end to much. I am no expert but it fixed the problem. Thanks for this, and yes Marked as installed. |
Wouldn't this allow any URL to be used?
|
I changed the code to this just in case:
Code:
<div align="center" style="margin: 5px 5px 5px 5px;"> Code:
[savedmap]source=ig&hl=en&ie=UTF8&hq=&hnear=Browns+Summit,+NC&gl=us&ei=5Pw5S5CTGI3ilAfR 8_GgBw&ved=0CAsQ8gEwAA&msa=0&msid=108286888553679296824.00047bd3022f955f5a820&ll =36.75539,-81.285095&spn=0.792197,1.149445&z=10[/savedmap] Using the "Test Your BB code" at the bottom of the manager it shows up properly, but in the actual replacement example box it doesn't show up. Just a FYI. |
Is there any way to merge this code with this mod's code? https://vborg.vbsupport.ru/showthread.php?t=234318
|
Quote:
|
IS there anyway I can load external gpx files into these maps?
Example: [savedmap]http://my.resource.com/track-file.gpx[/savedmap] So the map would show the contents of my gpx file? Thanks in advance |
Installed.
|
Quote:
|
i have this working on a vb 4.0.3 site and it works fine for UK roads, but if i try linking to a UK Streetview it simply displays the standard google map view instead ?
|
How do I do an iframe for any url, so instead of posting a url and it opening a new page on their site, it keeps the user on my site within the iframe?
Chris |
Quote:
|
Quote:
|
fantastic
thanks for this!! |
I don't think I've screwed anything up, but I tweaked it a bit to allow:
1) Any Google map can be embedded, not just saved maps, and 2) Control over how large the map is displayed. Code:
<div align="center" style="margin: 5px 5px 5px 5px;"> Be sure to change Use {option} to Yes. The option is the width and height of the map. An example would look like this: Code:
[savedmap=width="600" height="600"]maps?q=OBAMA'S+FRIED+CHICKEN,+Saint+Nicholas+Avenue,+New+York,+NY&hl=en&ll=40.802327,-73.950734&spn=0.00752,0.021136&sll=40.80391,-73.958234&sspn=0.003963,0.010568&z=16[/savedmap] |
Quote:
That was already done: https://vborg.vbsupport.ru/showthread.php?t=235625 |
hello!
i did manage to get this working but there is a strange issue with my embedded maps; there is no location "pins" visible. i tried with public addresses or my custom saved maps. i just get a map with no "destination" pin. any clues? thanks |
Quote:
|
Code:
http://maps.google.com/maps?q=19+Ptujska+ulica,+Ljubljana,+Slovenija&hl=sl&ll=46.054173,14.530621&spn=0.099711,0.223675&sll=46.050004,14.518948&sspn=0.199436,0.44735&vpsrc=6&hnear=Ptujska+ulica+19,+1000+Ljubljana,+Slovenija&t=h&z=13&iwloc=A |
Quote:
http://trailviewer.org/showthread.ph...st&p=10#post10 |
all I see is the link or BBCODE no map....
|
Sorry about that mate here's the test link..
http://trailviewer.org/forum/showthr...ap&p=11#post11 |
Anyone have a solution?
|
Can anybody tell me how to get the code that is required to be pasted between the [SAVEDMAP] tags?
I have created a map and saved it to "my places" in google maps, but have not been able to find any code that actually works. This is a link to the map: http://maps.google.com/maps/ms?ie=UT...a63409a48ae93f just in case I am doing things wrong. |
I figured it out, you get the code from the link icon above the details of your saved map, and drop the
https://maps.google.com.au/maps/ms? bit in front of the URL. Quote:
|
why are my maps very narrow
http://www.talknightlife.co.uk/f43/t...-google-14795/ Any ideas??? Cheers guys |
All times are GMT. The time now is 04:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|