-
Notifications
You must be signed in to change notification settings - Fork 18
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
Adding sample layer #41
Comments
Thanks for the report ! Sorry, this part of the code is not very clear (in the end there remains a place to modify in the code in the Lines 129 to 167 in 5f15596
and recompile the JS code with webpack following the instructions (in CONTRIBUTING.md ).
If you want your new sample layers to be opened with a particular projection, you can specify it in the Line 114 in 5f15596
Finally, if you want the type of each field to be "hardcoded" for theses samples layers, you can define them in the Line 38 in 5f15596
Note that you don't have to add both geojson and topojson format for the same layer, just one of them (the one referenced in Don't hesitate if you're still facing issues with theses examples layers. |
Fixed by #45. |
I would like to customize the list of sample base layers for a group of students. I have added TopoJSON and GeoJSON files to
magrit_app/static/data_sample
, and modifiedstatic/json/sample_layers.json
andclient/js/layers.js
and can't make it work.The text was updated successfully, but these errors were encountered: