Giter Club home page Giter Club logo

Comments (5)

robdodson avatar robdodson commented on August 20, 2024

You can link to an external stylesheet from your template
https://github.com/Polymer/core-toolbar/blob/master/core-toolbar.html#L59

from leaflet-map-component.

prtksxna avatar prtksxna commented on August 20, 2024

@robdodson Right, that is what I am doing - https://github.com/prtksxna/leafleft-map-component/blob/master/leaflet-map-component.html#L9

Wasn't sure if it was the right way. Should the whole of Leaflet's CSS be loaded like this?

from leaflet-map-component.

robdodson avatar robdodson commented on August 20, 2024

I'm assuming leaflet's css does not have shadow dom selectors so you may need to rewrite some of it. But otherwise, yes I believe so

from leaflet-map-component.

sjmiles avatar sjmiles commented on August 20, 2024

bower_components/leaflet/dist/leaflet.css path is improper (https://github.com/prtksxna/leafleft-map-component/blob/master/leaflet-map-component.html#L10).

The path should be ../leaflet/dist/leaflet.css. The leaflet library must be a peer to leaflet-map-component (just like polymer).

from leaflet-map-component.

prtksxna avatar prtksxna commented on August 20, 2024

@sjmiles Thanks for pointing it out. Fixed that in 0dbd0a8 for #1

@robdodson Yup, I was a bit worried about that when I started this project but everything seems to be working fine for now.

from leaflet-map-component.

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.