Skip to content

geoJSON does not work properly with GeometryCollection #1840

@RuslanPrimak

Description

@RuslanPrimak

The geoJSON does not operate in the manner indicated in the tutorial "Using GeoJSON with Leaflet".

The tutorial shows the following code:
var myLines = [{
"type": "LineString",
"coordinates": [[-100, 40], [-105, 45], [-110, 55]]
}, {
"type": "LineString",
"coordinates": [[-105, 40], [-110, 45], [-115, 55]]
}];
        
var myStyle = {
"color": "#ff7800",
"weight": 5,
"opacity": 0.65
};
        
L.geoJson(myLines, {
style: myStyle
}).addTo(map);

This code is not worked.
The problem is demonstrated in this sample http://jsfiddle.net/DestinyR/hUy5g/12/

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions