Opened 7 years ago

Closed 6 years ago

#4433 closed defect (wontfix)

improve svg support by using css

Reported by: Shmias Owned by: osm@…
Priority: trivial Milestone:
Component: osmarender Version:
Keywords: Cc:

Description

hi,

the exported svgs could be much more useful if it would use css. also they would be smaller, more logical and secmantic, and easier to change.

this mess:

<path style="fill-rule:nonzero;fill:rgb(73.72549%,66.27451%,66.27451%);fill-opacity:0.9;stroke-width:0.2;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(20%,0%,40%);stroke-opacity:1;stroke-miterlimit:4;"/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(73.72549%,66.27451%,66.27451%);fill-opacity:0.7;"/>
<path style="fill:none;stroke-width:15.5;stroke-linecap:round;stroke-linejoin:round;stroke:rgb(99.607843%,84.313725%,64.705882%);stroke-opacity:1;stroke-miterlimit:4;"/>

should be turned into this:

<style>
.building {
  stroke:none;
  fill-rule:nonzero;
  fill:rgb(73.72549%,66.27451%,66.27451%);
  fill-opacity:0.7;
}

.building.non-residentuial {
  fill-opacity:0.9;
  stroke-width:0.2;
  stroke-linecap:butt;
  stroke-linejoin:miter;
  stroke:rgb(20%,0%,40%);
  stroke-opacity:1; 
  stroke-miterlimit:4;
}

.highway.secondary {
  fill:none;
  stroke-width:15.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke:rgb(99.607843%,84.313725%,64.705882%);
  stroke-opacity:1;
  stroke-miterlimit:4;
}
<style>
<path class="building"/>
<path class="building non-residential"/>
<path class="highway secondary" />

Change History (1)

comment:1 Changed 6 years ago by iandees

Resolution: wontfix
Status: newclosed

Cleaning aging tickets.

Note: See TracTickets for help on using tickets.