Comments (15)
Hello Friends!
I've added experimental support for this feature. May I ask you to play with it and tell me how it goes?
To enable the feature just add ?svg=1
to the query string. I.e. click here https://anvaka.github.io/city-roads/?svg=1 - there should be a new item to export as SVG (trying to keep it hidden, so that if there are any issues we don't set wrong expectations)
Would this work? Anything else is missing?
from city-roads.
Thank you for the feedback! This is done now. Here is side by side rendering of city roads and an exported svg (both rendered by google chrome):
Still need to look into Safari export error, but otherwise this change supports colors and labels customization. Hope this works for you too! Please open a new issue if you find anything missing or broken.
Thanks again for the inspiration :).
from city-roads.
+1
from city-roads.
I totally agree with this suggestion!
from city-roads.
Yes! If not SVG, vector PDF.
from city-roads.
Yes! This is needed.
from city-roads.
+1
from city-roads.
Yeah, agreed. I'd like to do some graphic art with those clean maps.
from city-roads.
Looks good to me, though I first couldn't see anything in inkscape. I had to zoom in or make the lines thicker, but it seems to work. Thanks
from city-roads.
Looks good too! Opened it in Inkscape, selected all the objects and applied a 1 px-wide solid color to the lines, exported it to a png and it's sooooo gorgeous. Each step required some time to Inkscape to process it because there are many many many objets to deal with, that seems normal to me.
Many thanks anvaka, I really appreciate your work :)
from city-roads.
Works fine for me, thanks. However, the colors are ignored (always black and white). And there is no city label.
An additional rather small issue: at the end of each path's d attribute value there is an unnecessary space: ""
from city-roads.
The SVG pulls the view that I select (zoom level, placement), but its just black lines on a white bg.
from city-roads.
Downloading as svg doesn't work for me on Safari, macOS 10.15.2. I made sure ?svg=1
was in the url.
I tried it in chrome and it worked.
from city-roads.
@jeroentvb make sure you're appending &svg=1
if there are other arguments in the URL (e.g. https://anvaka.github.io/city-roads/?q=malaga%2C%20spain&areaId=3605275848&svg=1
and not https://anvaka.github.io/city-roads/?q=malaga%2C%20spain&areaId=3605275848?svg=1
).
from city-roads.
this ist really cool with .svg! Many thanks. Testet with chrom - it works
from city-roads.
Related Issues (20)
- is there anti alias available? HOT 1
- Makes Planting bombs a breez. HOT 1
- Provide a way to generate simplified versions HOT 1
- Allow to select multiple cities or administrative regions
- Map Scale HOT 1
- Allow a way to generate a map from pin point + radius.
- Filled areas with non closed boundaries
- Broken rendering of Venice, Italy roads
- OSM Error HOT 1
- [Feature Request] Add subway/train lines
- [Feature Request] Display city (area) boundaries
- [Feature Request] Add export HOT 2
- Possible to export/save settings for re-rendering later? HOT 1
- Configure fill?
- Waterways
- [Feature Request] Allow city-roads read local OSM file to avoid mass network request HOT 3
- OSM Error HOT 1
- hhh
- Differing paths in SVG export compared to OSM data
- Bad map loading experience
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 city-roads.