JuliaPlots / JuliaPlots/PlotlyJS.jl
Arbitrary Shapefile Visualization
- Dominant language
- Julia
- Stars
- 444
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
I am stuck on the PlotlyJS equivalent of the following example found [here](https://github.com/JuliaPlots/PlotRecipes.jl) on the `Plots.jl` page:
```
using PlotRecipes, Shapefile
dir = "https://github.com/nvkelso/natural-earth-vector/raw/master/110m_physical/"
fn = "ne_110m_land.shp"
run(`wget $dir/$fn -P /tmp/`)
shp = open("/tmp/$fn") do fd
read(fd, Shapefile.Handle)
end
plot(shp)
```
I tried out the following mapbox example [here](https://discourse.julialang.org/t/package-for-map-visualizations/1875/10)
```
mapbox_access_token = "pk.eyJ1IjoiY2hlbHNlYXBsb3RseSIsImEiOiJjaXFqeXVzdDkwMHFrZnRtOGtlMGtwcGs4In0.SLidkdBMEap9POJGIe1eGw"
data = scattermapbox(
lat=[45.5017], lon=[-73.5673], text=["Montreal"],
mode="markers", marker_size=14,
)
layout = Layout(
autosize=true, hovermode="closest",
mapbox=attr(
accesstoken=mapbox_access_token,
bearing=0,
center_lat=45, center_lon=-73,
pitch=0,
zoom=5
)
)
plot([data], layout)
```
and the maps/plots via mapbox look great, but I wouldn't say they look sleek, or at least not as sleek as some of the examples [here](https://community.plot.ly/t/choropleth-maps-at-zip-code-level/4882/6).
My goal is to visualize (and plot over) the zip code shapefile [here](https://www.census.gov/geo/maps-data/data/cbf/cbf_zcta.html) on the Census Bureau website.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.