-
Notifications
You must be signed in to change notification settings - Fork 5
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
Is it possible to plot makers and circles ? #6
Comments
Your syntax is not quite right but ther right syntax is broken too so I gues syou tried it feature = (; geometry=(X=73.5, Y = 70))
layers = Leaflet.Layer(feature; color=:red) Most likely this is a GeoJSON.jl bug. |
Thanks @rafaqz poking at this |
This was a GeoInterface.jl bug: JuliaGeo/GeoInterface.jl#84 If you checkout that branch and define a feature as I did above it should work. |
For me it seems the issue persists. Maybe I'm missing something. Executing the following produces an interactive map without any markers: # ]add GeoInterface#fix_base_types
using Leaflet, Blink, GADM, GeoInterface
begin
feature = (; geometry=(Y=70, X=-73.5))
layers = Leaflet.Layer(feature; color=:red)
provider = Leaflet.Esri(:imagery)
m = Leaflet.Map(; layers, provider, zoom=9, height=1000, center=[70, -73.5]);
w = Blink.Window()
body!(w, m)
end |
Did you check out the PR branch of GeoInterface.jl?
It's working here, if you are on that PR I will see if I missed something somewhere |
Ok yes there is another bug with NamedTuple points your point is in Antarctica lol |
Second bug is in GeoJSON.jl After that you example is working for me Edit: I'm thinking we should make that |
I agree that the |
Sure, I agree. Note that that keyword is just a direct translation to the javascript, it's not something anyone really made a decision about. |
It would be nice if we could specify icons like so |
Absolutely! But you should make another issue for that, as when I close this as completed whenever we can finally merge the GeoJSON.jl PR, your idea will be lost. |
So glad to see this library!!! Thanks for all of your efforts.
Is it possible to plot makers and circles [as shown for the JaveScript](library https://leafletjs.com/examples/quick-start/)?
My attempt was:
but no marker is visible
The text was updated successfully, but these errors were encountered: