Is it possible to share a Google map on WP?

Page 1 of 1 [ 3 posts ] 

Darmok
Veteran
Veteran

User avatar

Joined: 18 Dec 2015
Gender: Male
Posts: 12,030
Location: New England

15 Jan 2017, 12:03 am

One feature I'd really like to see is the ability to share/embed a Google map in a WP post. Is there a way to do this with BBCode?

Google makes it possible to embed maps by putting a little HTML into a post, but that doesn't seem possible here. I've see other commenting systems that recognize links to Google maps directly and insert the map in place, as we do here with Youtube videos.

Here are Google's instructions on how to embed maps in general: https://support.google.com/maps/answer/144361

This feature would be a nice addition to many threads and topics.


_________________
 
There Are Four Lights!


Kiprobalhato
Veteran
Veteran

User avatar

Joined: 25 Mar 2014
Age: 27
Gender: Female
Posts: 29,119
Location: מתחת לעננים

21 Jan 2017, 1:07 am

i think adding that feature might be dependent not just on us, but on google finding a way to support it with bbcode.

bbcode isn't found in many other places besides message boards like this, which form a small part of the internet as a whole.

it would be a very nice addition, yes. as for now i just make screenshots with GIMP, and post those. :mrgreen:


_________________
הייתי צוללת עכשיו למים
הכי, הכי עמוקים
לא לשמוע כלום
לא לדעת כלום
וזה הכל אהובי, זה הכל.


Soliloquist
Velociraptor
Velociraptor

User avatar

Joined: 13 Oct 2011
Age: 55
Gender: Male
Posts: 467

21 Jan 2017, 1:50 pm

Kiprobalhato wrote:
i think adding that feature might be dependent not just on us, but on google finding a way to support it with bbcode.

bbcode isn't found in many other places besides message boards like this, which form a small part of the internet as a whole.

it would be a very nice addition, yes. as for now i just make screenshots with GIMP, and post those. :mrgreen:



Google suggests it might be achieved by the admin creating a BBCode button
in the following manner:


Code:
PHPBB SITE ADMINS

Setting up the required BBCODE is simple and can be achieved by following these steps

1). Login to your phpBB forum and go into the administration panel

2). Click the Posting tab

3). Choose BBCodes from the left menu (if it isn't already selected)

4). Click the 'Add a new BBCode' button

5). In the BBCode usage field type:

[googlemaps]{URL}[/googlemaps]
Note: In the following example 'googlemaps' will be the name of the button available for your visitors

6). In the HTML replacement field type:

<iframe width="560" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{URL}"></iframe>

7). In the Help Line field type in some information about this command, e.g.

Insert map from Google Maps: [googlemaps]URL map[/googlemaps]

8). Save your button.



User steps to embed a map:

1). User locates a Google Map they want to share.

2). User clicks on the menu in the top left hand corner.

3). User clicks on share or embed.

4). User clicks on embed map tab.

5). User copies the iframe code e.g:

Code:
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d19859.590442208537!2d-0.09967039999999999!3d51.5233276!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2suk!4v1485004526399" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>


6.) User goes to the message they are drafting and clicks the BBCode "googlemaps". It places some code on the page that looks like this:

Code:
 [googlemaps][/googlemaps]


7). User copies the URL and places it between the tags e.g:

Code:
[googlemaps]https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d19859.590442208537!2d-0.09967039999999999!3d51.5233276!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2suk!4v1485004526399
[/googlemaps]