Coder Social home page Coder Social logo

Comments (7)

sfairgrieve avatar sfairgrieve commented on May 27, 2024

from leaflet-dvf.

Zhurzhiu avatar Zhurzhiu commented on May 27, 2024

Thanks for response. Actually, I was trying following things:

  1. CSS files in combined mode
    Added leaflet.css via html template (I didn't managed how to import it via ES6 import/webpack)
    Added leaflet-dvf.css via import

  2. CSS files in html template:
    Added leaflet.css via html template
    Added leaflet-dvf via html template straight after leaflet.css

  3. Chaneged z-index via Leaflet panes:
    map.getPane("overlayPane").style.zIndex = 650;
    map.getPane("overlayPane").style.position = "relative";

    When I removed "position:absolute" from leaflet-overlay-pane it will show Choropleth, but incorrect size and with other mismatch.

This didn't help. Hovever, I didn' see in dvf.css anything related to z-index or leaflet-overlay-pane

from leaflet-dvf.

sfairgrieve avatar sfairgrieve commented on May 27, 2024

@Zhurzhiu if you inspect element on the leaflet-overlay-pane element, does it have an assigned z-index value of 400? Same with leaflet-tile-pane, does it have an assigned z-index value of 200 from leaflet.css?

from leaflet-dvf.

Zhurzhiu avatar Zhurzhiu commented on May 27, 2024

I added screenshots from three panes:

  1. leaflet-tile-pane
  2. leaflet-overlay-pane
  3. leaflet shadow pane

Changing z-index on any of them didn't make any effect at all.

leaflet-overlay-pane

leaflet-shadow-pane

leaflet-tile-pane

from leaflet-dvf.

sfairgrieve avatar sfairgrieve commented on May 27, 2024

Hmmm. This is definitely a weird one. Any chance you could post a jsfiddle or similar example that I can take a look at? I haven't used React with Leaflet or Leaflet-DVF before, so it's hard for me to fully grasp what the problem could be.

from leaflet-dvf.

Zhurzhiu avatar Zhurzhiu commented on May 27, 2024

Thanks @sfairgrieve for your advice to make and example. I created example and it worked. So I checked other things, and found one CSS conflicting with DVF.
You can close this issue, because it's not issue anymore. Leaflet-dvf is playing really good with React. Thanks for this library!

from leaflet-dvf.

sfairgrieve avatar sfairgrieve commented on May 27, 2024

@Zhurzhiu glad to hear it! I'll close this one, but let me know if you run into any other issues.

from leaflet-dvf.

Related Issues (20)

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.