Open pfmayna opened 6 years ago
Hi!
Do you correctly include polylineDecorator after Leaflet? Do you use the async
attribute?
Can you please write down how you link to your .js files in both cases? I can't reproduce this bug, but maybe I'm overlooking something.
Hi Benjamin,
I rearranged my ‘.js’ references in the html, and now with a local copy of leaflet.js it works.
Thanks!
But while I’ve got you (!!), I have another question. My web app layout is:
XXXXXXXXXXXX XXXXXXXXXXXX YYZZZZZZZZZZZ YYZZZZZZZZZZZ YYZZZZZZZZZZZ
Where X is a top div with control widgets, Y is a status div, and Z is the Leaflet map div. If I don’t explicitly turn off scroll bars, they are there and if people use them they can scroll the map so it overlays the top and left divs. After turning off scroll bars, things are better but when tell leaflet to center the map at a latLng, the latLng location is offset down and to the right, about the same size as the top and left divs.
How do I fix this?
Thanks again in advance,
Paul
From: Benjamin Becquet [mailto:notifications@github.com] Sent: Saturday, February 10, 2018 5:43 AM To: bbecquet/Leaflet.PolylineDecorator Leaflet.PolylineDecorator@noreply.github.com Cc: Maynard, Paul Freedman pfmayna@sandia.gov; Author author@noreply.github.com Subject: [EXTERNAL] Re: [bbecquet/Leaflet.PolylineDecorator] L.polylineDecorator is null (#80)
Hi! Do you correctly include polylineDecorator after Leaflet? Do you use the async attribute? Can you please write down how you link to your .js files in both cases? I can't reproduce this bug, but maybe I'm overlooking something.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bbecquet/Leaflet.PolylineDecorator/issues/80#issuecomment-364649194, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgJBc1cYo2WioMflLjAsr55UaHp10lhxks5tTY7ggaJpZM4R7efU.
When I use the https://cdnjs.cloudflare // leaflet.js everything works. But when I put a copy of 'leaflet.js' in my local folder, L.polylineDecorator is null - no other changes. I'm trying to run Leaflet offline (with local tiles), and I can't figure out how to make this work.