Coder Social home page Coder Social logo

naivemap / mapbox-gl-layers Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 6.0 718 KB

Some implementations of mapbox's custom layer API.

License: MIT License

JavaScript 8.97% HTML 0.88% TypeScript 89.77% Shell 0.38%
customlayer echartslayer imagelayer mapbox

mapbox-gl-layers's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mapbox-gl-layers's Issues

ImageLayer color problem

I use imagelayer and pass base64 code, but the color of the layer is not the color of the picture I passed, why?

2+ instances of mapbox echart layer on the same page doesn't work as expected

Hey. I love this plugin and use it in one of my project.

BUT, I found a bug. When I initialise 2 maps with echart layers the last initialised map work as expected, but previous one is broken. I did some reverse engineering and found that when you initialise the same coordinate system twice it overrides with last initialised one:

Echarts/CoordinateSystemManager (method register)
image

Demo:
ezgif com-optimize-2

See how scatter data stick to one position on first map, while on second map all works fine. It shares the same position (latest initialised instance).

Please let me know what do you think and if you are going to fix that behaviour.
Thanks in advanced ๐Ÿ™

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.