-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
text-path: curve > symbol-placement: line, rm symbol-rotation-alignment
- Loading branch information
Lauren Budorick
committed
Jul 10, 2014
1 parent
dea5ce6
commit c94fcdf
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,13 +99,11 @@ function convertLayer(layer) { | |
rename(render, 'text-min-distance', 'symbol-min-distance'); | ||
|
||
if (layer.style && layer.style['icon-rotate-anchor']) { | ||
render['symbol-rotation-alignment'] = layer.style['icon-rotate-anchor']; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ansis
Contributor
|
||
delete layer.style['icon-rotate-anchor']; | ||
} | ||
|
||
if (render['text-path' === 'curve']) { | ||
render['symbol-rotation-alignment'] = 'map'; | ||
render.placement = 'line'; | ||
if (render['text-path'] === 'curve') { | ||
render['symbol-placement'] = 'line'; | ||
} | ||
|
||
delete render['text-path']; | ||
|
Not sure if this line should go away, @ansis?