Code Monkey home page Code Monkey logo

maptiles.jl's Issues

plot raises Warning: Attribute alias `xlim` detected in the user recipe defined for the signature

Hello,

Following #6 (comment)

I noticed that

julia> plot(basemap)
┌ Warning: Attribute alias `xlim` detected in the user recipe defined for the signature (::MapTiles.BaseMap{RGB{FixedPointNumbers.Normed{UInt8,8}}}). To ensure expected behavior it is recommended to use the default attribute `xlims`.
└ @ Plots C:\Users\Admin-pc\.julia\packages\Plots\oZheM\src\pipeline.jl:15
┌ Warning: Attribute alias `ylim` detected in the user recipe defined for the signature (::MapTiles.BaseMap{RGB{FixedPointNumbers.Normed{UInt8,8}}}). To ensure expected behavior it is recommended to use the default attribute `ylims`.
└ @ Plots C:\Users\Admin-pc\.julia\packages\Plots\oZheM\src\pipeline.jl:15

which seems to be related to this plot recipe
https://github.com/yeesian/MapTiles.jl/blob/58029f3fb60c202a97aca10214139c0d2eb8396b/src/MapTiles.jl#L19-L28

Unfortunately, I personnaly don't know Plots.jl and RecipesBase.jl much

Kind regards

use

Hey,
this looks cool.

  1. Do you need help getting this on 1.0?
  2. Are there any examples of use?

Get basemap that honors specified bounding box

I wonder if it would be possible to get a basemap that honors the specified lon/lat min/max pairs. Right now, when I plot the basemap, it includes extra "borders" that don't make a good visualization:

screenshot from 2018-01-13 16-07-32

Alternatively, if the basemap object stores the lon/lat min/max values, the plot recipe could crop the borders.

MapTiles compile error

MapTiles throws a compile error, I think this is because of breaking changes to GeoInterface

dev https://github.com/yeesian/MapTiles.jl
using MapTiles

[ Info: Precompiling MapTiles [fea52e5a-b371-463b-85f5-81770daa2737]
ERROR: LoadError: UndefVarError: Point not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ /net/devon/mnt/devon2-r1/devon0/gardnera/Documents/GitHub/MapTiles.jl/src/MapTiles.jl:82
 [3] include
   @ ./Base.jl:419 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base ./loading.jl:1554
 [5] top-level scope
   @ stdin:1
in expression starting at /net/devon/mnt/devon2-r1/devon0/gardnera/Documents/GitHub/MapTiles.jl/src/MapTiles.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile MapTiles [fea52e5a-b371-463b-85f5-81770daa2737] to /home/gardnera/.julia/compiled/v1.8/MapTiles/jl_7Q3c8P.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1705
  [3] compilecache
    @ ./loading.jl:1649 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] eval
    @ ./boot.jl:368 [inlined]
 [10] eval
    @ ./Base.jl:65 [inlined]
 [11] repleval(m::Module, code::Expr, #unused#::String)
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/repl.jl:222
 [12] (::VSCodeServer.var"#107#109"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/repl.jl:186
 [13] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging ./logging.jl:511
 [14] with_logger
    @ ./logging.jl:623 [inlined]
 [15] (::VSCodeServer.var"#106#108"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/repl.jl:187
 [16] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
 [17] invokelatest(::Any)
    @ Base ./essentials.jl:726
 [18] macro expansion
    @ ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
 [19] (::VSCodeServer.var"#61#62")()
    @ VSCodeServer ./task.jl:484

More tile map providers

Hello,

Following #5, a large number of online map providers can be found in
https://github.com/leaflet-extras/leaflet-providers/blob/master/leaflet-providers.js (JavaScript code)

or also in https://github.com/tumic0/GPXSee-maps (XML data with corresponding URL).

or in MOBAC
https://sourceforge.net/p/mobac/code/HEAD/tree/trunk/MOBAC/mapsources/ (Java code or BeanShell)
https://sourceforge.net/p/mobac/code/HEAD/tree/trunk/MOBAC/mappacks/

Maybe an approach could be to have this kind of data outside of Julia code but simply as data in a repository which could be shared accross several projects (in differents languages).

Any opinion about it?

Kind regards

Interactive UI for displaying map

Hello,

I wonder if there is currently a way to have with Julia an interactive user interface for interacting with web map tiles ie a way to zoom in / zoom out / pan.

If such a solution currently exists maybe it could be documented in #6 (comment)

Kind regards

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Any way to plot a heatmap on top of the tiles?

I wonder if it is currently possible to plot a heatmap as a layer with some transparency on the tiles? I tried the following:

using Plots; gr()
using MapTiles

plt = plot(basemap)
heatmap!(plt, lon, lat, vals, yflip=true)

where lon and lat are 1D vectors of size m and n, and vals is a vector of size m*n. And the lat/lon values span the same range of the basemap. This is what I am getting:

screenshot from 2018-01-06 00-50-58

TileGrid iterator is type unstable?

julia> collect(tilegrid)
16-element Vector{Any}:
 Tile(63, 61, 7)
 Tile(64, 61, 7)
 Tile(65, 61, 7)
 Tile(66, 61, 7)
 
 Tile(64, 64, 7)
 Tile(65, 64, 7)
 Tile(66, 64, 7)

seems wrong...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.