Giter Club home page Giter Club logo

Comments (15)

anvaka avatar anvaka commented on July 21, 2024 16

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)

image

Would this work? Anything else is missing?

from city-roads.

anvaka avatar anvaka commented on July 21, 2024 5

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):

image

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.

ketz avatar ketz commented on July 21, 2024

+1

from city-roads.

grmain avatar grmain commented on July 21, 2024

I totally agree with this suggestion!

from city-roads.

acircleda avatar acircleda commented on July 21, 2024

Yes! If not SVG, vector PDF.

from city-roads.

Devetec avatar Devetec commented on July 21, 2024

Yes! This is needed.

from city-roads.

spidey000 avatar spidey000 commented on July 21, 2024

+1

from city-roads.

ktgvv avatar ktgvv commented on July 21, 2024

Yeah, agreed. I'd like to do some graphic art with those clean maps.

from city-roads.

patzi avatar patzi commented on July 21, 2024

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.

grmain avatar grmain commented on July 21, 2024

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.

lagerkoller avatar lagerkoller commented on July 21, 2024

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.

acircleda avatar acircleda commented on July 21, 2024

The SVG pulls the view that I select (zoom level, placement), but its just black lines on a white bg.

from city-roads.

jeroentvb avatar jeroentvb commented on July 21, 2024

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.

nonoesp avatar nonoesp commented on July 21, 2024

@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.

puchok avatar puchok commented on July 21, 2024

this ist really cool with .svg! Many thanks. Testet with chrom - it works

from city-roads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.