inherit
228909
0
May 18, 2024 21:06:10 GMT -8
¡Lance!
36
February 2016
frosty928
|
Post by ¡Lance! on Feb 19, 2022 14:07:47 GMT -8
So I have this; www.google.com/maps/d/edit?mid=18tFIh0s4FjmyqDbIXyR57J5woJFyB1Wu&usp=sharingAnd I'm trying to get it to embed into a forum post so you can do all the nifty features that the map allow like clicking on a highlighted area to display a blurb on information. I'd like it to actually display the map and retain to features so my members don't have to navigate away from the forum. Can anyone help me with some potential UBBC code magic by chance?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 19, 2022 17:12:05 GMT -8
You can probably accomplish this using the plugin posted here but the link you've shared is not publicly accessible, which makes sense since you would not want everybody to edit the map at will. If I change the "edit" in the link you've posted to "view" then I have no problem getting the map to load. To do this create a new allowed domain in the plugin for .google.com with maps and view in the path and mid= in the query and allow-script and allow-same-origin selected in permissions Then create a link in any post with the name="embed" attribute attached to that link and if the pattern matches what was entered in the plugin's configuration that link gets processed and converted to the intended source. [a href="https://www.google.com/maps/d/view?mid=18tFIh0s4FjmyqDbIXyR57J5woJFyB1Wu&usp=sharing" name="embed"]myMap[/a]
|
|
inherit
228909
0
May 18, 2024 21:06:10 GMT -8
¡Lance!
36
February 2016
frosty928
|
Post by ¡Lance! on Feb 19, 2022 18:13:53 GMT -8
You can probably accomplish this using the plugin posted here but the link you've shared is not publicly accessible, which makes sense since you would not want everybody to edit the map at will. If I change the "edit" in the link you've posted to "view" then I have no problem getting the map to load. To do this create a new allowed domain in the plugin for .google.com with maps and view in the path and mid= in the query and allow-script and allow-same-origin selected in permissions Then create a link in any post with the name="embed" attribute attached to that link and if the pattern matches what was entered in the plugin's configuration that link gets processed and converted to the intended source. [a href="https://www.google.com/maps/d/view?mid=18tFIh0s4FjmyqDbIXyR57J5woJFyB1Wu&usp=sharing" name="embed"]myMap[/a] Thank you so much! I'm gonna give this a shot and see how it goes. I'll give you an update soon!
|
|
inherit
228909
0
May 18, 2024 21:06:10 GMT -8
¡Lance!
36
February 2016
frosty928
|
Post by ¡Lance! on Feb 19, 2022 18:20:50 GMT -8
Update; it works; you are a coding god! I bow to you sir!
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 21, 2022 1:02:50 GMT -8
Sweet! Just a note that you or anyone capable of creating or editing a post can now currently post google maps on your forum. If that is undesirable then you could edit the query in that plugin entry to include the full media id instead of just any media id (i.e. mid=18tFIh0s4FjmyqDbIXyR57J5woJFyB1Wu) that way only that particular map identified by that particular media id can be posted and still match the pattern. If you have multiple maps you want to post then you could include a specific plugin entry for each map using the full media id thus curtailing any unnecessary or irrelevant maps being posted and processed.
|
|
inherit
266291
0
Feb 24, 2023 20:46:51 GMT -8
Syko
42
April 2022
syko85
|
Post by Syko on May 13, 2022 7:54:28 GMT -8
I am popping in to say this was very useful, thank you
Just wish here was a way to make my own terrain for the map, cuz i run a Star Wars Roleplay forum and would love to make a Google Maps style of the star wars Galaxy
|
|