[core] parse GeoJSON source type

This commit is contained in:
Konstantin Käfer
2015-12-08 18:25:04 -08:00
parent 132b68e4fc
commit 2f973d0a7e
11 changed files with 108 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
{
"default": {
"log": [
]
}
}

View File

@@ -0,0 +1,9 @@
{
"version": 8,
"sources": {
"mapbox": {
"type": "geojson",
"data": { "type": "Feature", "geometry": { "type": "Point", "coordinates": [100.0, 0.0] } }
}
}
}

View File

@@ -0,0 +1,6 @@
{
"default": {
"log": [
]
}
}

View File

@@ -0,0 +1,9 @@
{
"version": 8,
"sources": {
"mapbox": {
"type": "geojson",
"data": "asset://TEST_DATA/fixtures/geojson/point.json"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"default": {
"log": [
[1, "ERROR", "ParseStyle", "GeoJSON data must be a URL or an object"]
]
}
}

View File

@@ -0,0 +1,9 @@
{
"version": 8,
"sources": {
"mapbox": {
"type": "geojson",
"data": 24
}
}
}

View File

@@ -0,0 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "GeoJSON source must have a data value"]
]
}
}

View File

@@ -0,0 +1,8 @@
{
"version": 8,
"sources": {
"mapbox": {
"type": "geojson"
}
}
}