Comments (5)
No problems at all, I should definitely add this option.
The scheme format however is still under development and not documented. If you want to create custom scheme, please feel free to ask questions.
from map-machine.
Definitively, do not really understand it. Just tried an empty scheme and I failed. I only added the color definition from the default scheme in what made the program work. However, there are still a lot of objects on the map. Shouldn't an empty scheme result in an empty map?
from map-machine.
I only added the color definition from the default scheme in what made the program work.
This is indeed a bug. Totally empty scheme file should work. I'll fix it.
Shouldn't an empty scheme result in an empty map?
Hmm... Looks like very legal assumption.
Honestly, I never thought about such a use case. Map Machine just tries to render everything no matter how and this behavior isn't manageable through scheme file.
from map-machine.
Still throws an error message :(
(.env) C:\Users\mfbeh\Documents\Github\map-machine>map-machine render -b=8.4214801253,49.0197665932,8.4230425121,49.0205831971 -z=21 --scheme=map_machine/scheme/empty.yml
Traceback (most recent call last):
File "C:\Users\mfbeh\Documents\Github\map-machine\.env\Scripts\map-machine-script.py", line 33, in <module>
sys.exit(load_entry_point('map-machine', 'console_scripts', 'map-machine')())
File "c:\users\mfbeh\documents\github\map-machine\map_machine\main.py", line 44, in main
mapper.render_map(arguments)
File "c:\users\mfbeh\documents\github\map-machine\map_machine\mapper.py", line 270, in render_map
scheme: Scheme = Scheme.from_file(scheme_path)
File "c:\users\mfbeh\documents\github\map-machine\map_machine\scheme.py", line 375, in from_file
return cls(content)
File "c:\users\mfbeh\documents\github\map-machine\map_machine\scheme.py", line 319, in __init__
if "node_icons" in content:
TypeError: argument of type 'NoneType' is not iterable```
from map-machine.
Hm, seems like YAML failed to load the file. Could you please dump the content of map_machine/scheme/empty.yml
?
Update: oh, I see, it is just totally empty, which is presumably a valid YAML file. I'll check this.
from map-machine.
Related Issues (20)
- waterway=river is hidden behind natural=wood HOT 8
- Fix `placement` tag processing
- Color areas based on various landuse tag values HOT 3
- Lane count transition regression HOT 1
- Most vending machines rendering with generic icon HOT 1
- Typo for motorcar key HOT 1
- Icons - Add tracks to tramway (like train) HOT 2
- Icon - Add for changing room HOT 1
- Icon - Add male / female modifiers to toilets, changing rooms, bathing areas, etc. HOT 1
- Support water slides HOT 1
- Fix diving towers HOT 1
- Render indoor=room HOT 11
- Register map-machine at pypi HOT 1
- Problem installing on MacOS 12.5.1 HOT 8
- Lake intersecting viewport is rendered wrong HOT 5
- Render tourism=camp_pitch HOT 3
- Support `sac_scale` tag for hiking routes
- New Tagged Version HOT 2
- Spaceport icon HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from map-machine.