You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-07-06 14:54:50

PhilGB
Member
Registered: 2015-07-06
Posts: 1

Pattern Rotaion

Hey,

i search a "pattern-rotate" command in CartoCss.

Something like this:

#Roof {
  polygon-pattern-file: url("c:\roof.jpg");

  [type='north'] {
    polygon-pattern-orientation:(0°) <- (this isn't a command but i need this function)   
  }

  [type='east'] {     
    polygon-pattern-orientation:(90°)
  }

  [type='west'] {
    polygon-pattern-orientation:(180°)
  }
  [type='south '] {
    polygon-pattern-orientation:(270°)
  }
}

The Result should look like this:
http://7357.g-pg.de/rotateExample/roofExample.jpg
(This Roof is out of four triangles)

Different polygon-pattern-files are not an option. I need for every Degree a diffent rotated image.

Do you have any Idea?

Have a nice Day
Phil

Offline

#2 2015-07-12 17:09:53

stephan75
Member
Registered: 2008-05-28
Posts: 2,918

Re: Pattern Rotaion

What about asking for this feature via a github issue?

see https://github.com/mapbox/carto

Offline

Board footer

Powered by FluxBB