fgb=FALSE still produces a folder with map info
Hi - I cannot seem to produce an HTML with an interactive leaflet map self-contained in the html. I tried both version 2.11.0 and 2.11.0.9002 I am using R 4.2.1 This happens in Quarto and a Markdown Notebook. No matter which way I toggle it - the folder is produced with map info and the map won't work without it. This used to work for me (I actually never had to set fgb, it just worked to produce a self contained html - which is v nice for working with collaborators in that I just send them one html).
Does it work with native leaflet?
Will try that...sent to a colleague as well to see if we can sort it.
@.Lou Reynolds (he/him) Biologist /><''''@ > US EPA Mid-Atlantic Region Phone 304-533-9913 Email @.@.***> [Title: Facebook - Description: Facebook icon]https://www.facebook.com/EPAregion3 [Title: Twitter - Description: Twitter icon] https://twitter.com/EPAregion3
From: tim-salabim @.> Sent: Tuesday, October 4, 2022 1:07 PM To: r-spatial/mapview @.> Cc: Reynolds, Louis @.>; Author @.> Subject: Re: [r-spatial/mapview] fgb=FALSE still produces a folder with map info (Issue #442)
Does it work with native leaflet?
Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fr-spatial%2Fmapview%2Fissues%2F442%23issuecomment-1267304478&data=05%7C01%7Creynolds.louis%40epa.gov%7Cd4f416b62f4841d58de908daa62adb5c%7C88b378b367484867acf976aacbeca6a7%7C0%7C0%7C638005000245910631%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ugm%2FrEfKCqgXvB5GoGTBFN5OXwGkjQCxGE1bGeiOYak%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGL3625Q264LDB7NTTGFHB3WBRP3FANCNFSM6AAAAAAQ4YGHZM&data=05%7C01%7Creynolds.louis%40epa.gov%7Cd4f416b62f4841d58de908daa62adb5c%7C88b378b367484867acf976aacbeca6a7%7C0%7C0%7C638005000245910631%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=70R6O0ny%2Flx439rZo8m%2F8VrRYZ%2Bsayz4f9KNttHEPA0%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.@.>>
It does the same with native leaflet - makes a folder with all the info to support the map.
@.Lou Reynolds (he/him) Biologist /><''''@ > US EPA Mid-Atlantic Region Phone 304-533-9913 Email @.@.***> [Title: Facebook - Description: Facebook icon]https://www.facebook.com/EPAregion3 [Title: Twitter - Description: Twitter icon] https://twitter.com/EPAregion3
From: tim-salabim @.> Sent: Tuesday, October 4, 2022 1:07 PM To: r-spatial/mapview @.> Cc: Reynolds, Louis @.>; Author @.> Subject: Re: [r-spatial/mapview] fgb=FALSE still produces a folder with map info (Issue #442)
Does it work with native leaflet?
Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fr-spatial%2Fmapview%2Fissues%2F442%23issuecomment-1267304478&data=05%7C01%7Creynolds.louis%40epa.gov%7Cd4f416b62f4841d58de908daa62adb5c%7C88b378b367484867acf976aacbeca6a7%7C0%7C0%7C638005000245910631%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ugm%2FrEfKCqgXvB5GoGTBFN5OXwGkjQCxGE1bGeiOYak%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGL3625Q264LDB7NTTGFHB3WBRP3FANCNFSM6AAAAAAQ4YGHZM&data=05%7C01%7Creynolds.louis%40epa.gov%7Cd4f416b62f4841d58de908daa62adb5c%7C88b378b367484867acf976aacbeca6a7%7C0%7C0%7C638005000245910631%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=70R6O0ny%2Flx439rZo8m%2F8VrRYZ%2Bsayz4f9KNttHEPA0%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.@.>>
How are you saving your map?
html
This has been solved by colleagues smarter than me.
In addition to having fgb=false set as an option in mapview, the YAML header for the html needs set self-contained: false/true
(from Jeff Hollister)
Rmd:
output: html_document: self_contained: false
qmd:
format: html: self-contained: true
Note that the switch is opposite in rmd and qmd - I don't know why, I just know this works.
@.Lou Reynolds (he/him) Biologist /><''''@ > US EPA Mid-Atlantic Region Phone 304-533-9913 Email @.@.***> [Title: Facebook - Description: Facebook icon]https://www.facebook.com/EPAregion3 [Title: Twitter - Description: Twitter icon] https://twitter.com/EPAregion3
From: tim-salabim @.> Sent: Wednesday, October 5, 2022 2:59 AM To: r-spatial/mapview @.> Cc: Reynolds, Louis @.>; Author @.> Subject: Re: [r-spatial/mapview] fgb=FALSE still produces a folder with map info (Issue #442)
How are you saving your map?
Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fr-spatial%2Fmapview%2Fissues%2F442%23issuecomment-1268027868&data=05%7C01%7Creynolds.louis%40epa.gov%7Cc3f788e0cd0e4dbd8e9d08daa69f0aac%7C88b378b367484867acf976aacbeca6a7%7C0%7C0%7C638005499275312470%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6yG2Qpjp6IzMh5IVDHwdP%2FEL32I%2Bh7795tjJ9qT02CA%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGL3623IAJXULQIJ4O2PWY3WBURKBANCNFSM6AAAAAAQ4YGHZM&data=05%7C01%7Creynolds.louis%40epa.gov%7Cc3f788e0cd0e4dbd8e9d08daa69f0aac%7C88b378b367484867acf976aacbeca6a7%7C0%7C0%7C638005499275312470%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UounOef7fZQbZJafzD%2F11eKHsBxgNEzywa4Ca4Cx09I%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.@.>>