Skip to content

Leaflet map works in RStudio View, but hangs in browser. #645

Closed
@zlehmann

Description

@zlehmann

Code here:

Column {data-width=600}
-----------------------------------------------------------------------

### Map

```{r}
m <- leaflet() %>% addTiles() %>% setView(lat=25, lng=55, zoom=10)
m
```

If i add the m lines into the console, I can get the map to display in the Viewer just fine. When I try to knit this code it just hangs with the loading bar running endlessly. I had leaflet map working earlier today, I swear I didn't change any code and suddenly I have these symptoms. No idea what the problem could be. I restarted computer, Moved code to new directory, reinstalled all my packages. Nothing works. I'm new to RStudio so let me know what additional information might be useful.

Metadata

Metadata

Assignees

Labels

type: bugMaintainers have validated that it is a real bug in the project codetype: htmlwidgetsIssue isolated to htmlwidgets

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions