Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
PreTeXt support
Conversations
About
Embedding Google Maps
29 views
Skip to first unread message
Julien
unread,
Apr 25, 2023, 2:45:20 PM
4/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PreTeXt support
Hi all,
I would like to embed a Google Map in a PreTeXt document?
Is it possible to do that just like it is possible to embed a Desmos graph, for instance?
Thanks for your help,
Julien
Rob Beezer
unread,
Apr 25, 2023, 3:11:23 PM
4/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pretext...@googlegroups.com
There is a version of "interactive" which has an "iframe" attribute. Perhaps that would do the trick?
I can't check details easily for a while. Look in sample article for a "PhET" example interactive to mimic?
Rob
Julien
unread,
Apr 25, 2023, 4:19:58 PM
4/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PreTeXt support
This does the trick.
It suffices to click on share/embed to obtain the correct iframe source.
Thanks a lot Rob.
Rob Beezer
unread,
Apr 25, 2023, 6:53:25 PM
4/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pretext...@googlegroups.com
Great! Thanks for the ACK.
Post your one line of code here if you wish and I'll add it to the sample article?
Julien
unread,
Apr 27, 2023, 7:32:41 PM
4/27/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PreTeXt support
Here is some code that allows to embed a Google Map of California in e PreTeXt document.
Note that the iframe https address was obtained by using the sharing capabilities of Google Maps.
<
figure
xml
:
id
=
"map
-california
"
>
<
caption
>California.</
caption
>
<
interactive
xml
:
id
=
"
interactive-map-california
"
iframe
=
"
https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6512739.689202133!2d-124.5931848890628!3d37.151542068971864!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x808fb9fe5f285e3d%3A0x8b5109a227086f55!2sCalifornie%2C%20%C3%89tats-Unis!5e0!3m2!1sfr!2sca!4v1682454368296!5m2!1sfr!2sca
"
width
=
"
95%
"
aspect
=
"
15:10
"
/>
</
figure
>
Rob Beezer
unread,
Apr 27, 2023, 8:41:52 PM
4/27/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pretext...@googlegroups.com
Very good! Thanks.
Rob Beezer
unread,
May 1, 2023, 1:29:05 PM
5/1/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pretext...@googlegroups.com
Now incorporated into the sample article as Figure 15.7. HTML, and static in
PDF. Thanks, Julien, for the question and the contribution.
Figure 15.7
https://pretextbook.org/examples/sample-article/html/section-interactive-server.html#map-california
Reply all
Reply to author
Forward
0 new messages