New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KML Style Color should to be inverted for CSS (bbggrr to rrggbb) #56
Comments
👍 for this :) |
Either way mine is still using the default blue for lines. |
Mine just uses the default blue no matter what .. |
Can you provide a jsfiddle or a demo online showing your bug please @nickponline ? |
Just the kml example from this repository using this KML file will show the problem: https://www.dropbox.com/s/jo2s36yh7j6899d/example.kml In Google Earth it shows with correct colours whereas with leaflet-plugins it shows in blue. |
Here is an example. The code below produces a blue path, but in GoogleEarth it's coloured. <html>
<head>
<title>Leaflet</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<script src="../layer/vector/KML.js"></script>
</head>
<body>
<div style="width:100%; height:100%" id="map"></div>
<script type='text/javascript'>
var map = new L.Map('map', {center: new L.LatLng(38.145263,-122.856537), zoom: 11});
var osm = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png');
var track = new L.KML("https://s3.amazonaws.com/drone_logs/still-sun-659.kml", {async: true});
map.addLayer(track);
map.addLayer(osm);
map.addControl(new L.Control.Layers({}, {'Track':track}));
</script>
|
On vector/KML.js (
leaflet-plugins/layer/vector/KML.js
Line 111 in 7ec7fd2
I think that this line should be :
The text was updated successfully, but these errors were encountered: