Opened 11 years ago

Closed 11 years ago

#853 closed enhancement (worksforme)

Add more SVG POI icons to the built-in styles

Reported by: Dirk Stoecker Owned by: cmarqu
Priority: minor Milestone:
Component: merkaartor Version:
Keywords: Cc:

Description

Add SVG-Icon-Support using icons from

svn.openstreetmap.org/applications/share/map-icons/svg/

to extend the displayed Icons a lot.

Change History (8)

comment:1 Changed 11 years ago by Chris Browet

Owner: changed from bvh-osm@… to Chris Browet
Status: newassigned

Was about to implement this but looks like it works.

Could you confirm?

comment:2 Changed 11 years ago by Dirk Stoecker

Probably loading works. I did not mean implement loading SVG's only, but also to integrate the icons into the supplied display schemes to have a more complete display of POI's :-)

comment:3 Changed 11 years ago by Chris Browet

Owner: changed from Chris Browet to cmarqu
Status: assignednew
Summary: SVG-Icon-SupportAdd more SVG POI icons to the built-in styles

Ah, ok. Not my part, reassigning to Collin.

comment:4 Changed 11 years ago by Colin Marquardt

You might have seen this already, but there is a new style MapnikPlus? where I'm added (and am still adding) new icons.

comment:5 Changed 11 years ago by bart@…

As far as I can tell, loading svg icons didn't work before. It should since r10027 though. In the style editor if you use a iconname ending in .svg it is interpreted as a SVG (obviously) and rendered as a 32x32 icon. Not sure if that is the appropriate size?

comment:6 Changed 11 years ago by Colin Marquardt

Sorry, I was using PNG icons (not SVG) indeed. I think 16x16 would be a better default size. Ideally you could specify the size per icon though (think e.g. a tram stop icon which would be a dot of maybe 4 pixels).

comment:7 in reply to:  6 Changed 11 years ago by bart@…

Replying to ColinMarquardt:

Sorry, I was using PNG icons (not SVG) indeed. I think 16x16 would be a better default size. Ideally you could specify the size per icon though (think e.g. a tram stop icon which would be a dot of maybe 4 pixels).

That sounds reasonable, I opened #1119 for that one.

Another problem it seems with some of the svg icons is that they are drawn with quite some whitespace around them. I guess the only solution is to fix the icon in that case.

comment:8 Changed 11 years ago by Chris Browet

Resolution: worksforme
Status: newclosed

I guess we can close this one. Re original request of "more icons", they will be added with time.

Note: See TracTickets for help on using tickets.