-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fgb=FALSE still produces a folder with map info #442
Comments
Does it work with native leaflet? |
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 GitHub<https://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 unsubscribe<https://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: ***@***.******@***.***>>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).
The text was updated successfully, but these errors were encountered: