Created
January 29, 2018 17:36
-
-
Save robgaston/d0e3db6b966837be65031d2300a0801d to your computer and use it in GitHub Desktop.
example of how to add a geojson points layer to arches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python manage.py packages -o add_mapbox_layer -n example-points-1 -j example-points.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"layers": [{ | |
"type": "circle", | |
"paint": { | |
"circle-radius": 6, | |
"circle-color": "green" | |
}, | |
"id": "example-points", | |
"source": "example-points" | |
}, | |
{ | |
"type": "symbol", | |
"layout": { | |
"text-field": "{KML_FOLDER}", | |
"text-font": [ | |
"Open Sans Semibold", | |
"Arial Unicode MS Bold" | |
], | |
"text-offset": [ | |
0, | |
0.6 | |
], | |
"text-anchor": "top" | |
}, | |
"id": "example-points-labels", | |
"source": "example-points" | |
} | |
], | |
"sources": { | |
"example-points": { | |
"type": "geojson", | |
"data": { | |
"type": "FeatureCollection", | |
"features": [{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I3", | |
"KML_FOLDER": "Arcos de Valdevez" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.450217, | |
41.938804 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_M", | |
"KML_FOLDER": "Arcos de Valdevez" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.343963, | |
41.870299 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_M", | |
"KML_FOLDER": "Arcos de Valdevez" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.389271, | |
41.868684 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I1", | |
"KML_FOLDER": "Caminha" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.832159, | |
41.873065 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_M0", | |
"KML_FOLDER": "Caminha" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.838441, | |
41.801253 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_M0", | |
"KML_FOLDER": "Caminha" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.841388, | |
41.809651 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_M0", | |
"KML_FOLDER": "Caminha" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.78731, | |
41.906306 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_M0", | |
"KML_FOLDER": "Caminha" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.850757, | |
41.809936 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_V1", | |
"KML_FOLDER": "Melgaço" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.09831, | |
42.070975 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_M1", | |
"KML_FOLDER": "Melgaço" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.279876, | |
42.092524 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_M1", | |
"KML_FOLDER": "Monção" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.452002, | |
42.027202 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_V0", | |
"KML_FOLDER": "Ponte da Barca" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.251466, | |
41.840543 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I2", | |
"KML_FOLDER": "Paredes de Coura" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.627916, | |
41.873977 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_C", | |
"KML_FOLDER": "Ponte de Lima" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.560746, | |
41.795792 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I", | |
"KML_FOLDER": "Ponte de Lima" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.605898, | |
41.780252 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I", | |
"KML_FOLDER": "Ponte de Lima" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.611713, | |
41.715959 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I", | |
"KML_FOLDER": "Ponte de Lima" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.612457, | |
41.694275 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I", | |
"KML_FOLDER": "Ponte de Lima" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.607588, | |
41.694813 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I", | |
"KML_FOLDER": "Ponte de Lima" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.643646, | |
41.792144 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_V", | |
"KML_FOLDER": "Valença" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.639526, | |
42.002488 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I0", | |
"KML_FOLDER": "Valença" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.58861, | |
41.99746 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_E", | |
"KML_FOLDER": "Vila Nova de Cerveira" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.739175, | |
41.952262 | |
] | |
} | |
}, | |
{ | |
"type": "Feature", | |
"properties": { | |
"KML_STYLE": "msn_I2", | |
"KML_FOLDER": "Vila Nova de Cerveira" | |
}, | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-8.697189, | |
41.888439 | |
] | |
} | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment