Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canvas background color #11

Open
vasgk opened this issue Mar 12, 2015 · 2 comments
Open

canvas background color #11

vasgk opened this issue Mar 12, 2015 · 2 comments
Assignees

Comments

@vasgk
Copy link

vasgk commented Mar 12, 2015

How can I change the canvas background color? The default value is white. I have noticed that even if I have created a mapcss file in which I set canvas background color at a different color, and provide it as an input to the OsmSharpDataProcessor, the produced file (*.map file format) still has the default background color.

@xivk xivk self-assigned this Mar 14, 2015
@xivk
Copy link
Contributor

xivk commented Mar 14, 2015

I updated this issue to fix this:

OsmSharp/ui#140

@vasgk
Copy link
Author

vasgk commented Mar 17, 2015

I have tested the proposed changes but still the background color (or fill color) does not change as it should accordingly to the mapcss file that I am giving as an input to the OsmSharpDataProcessor.
More specifically, I want to set the background color to blue (#a3c3ec). The mapcss file I use (MyMapCssFile.mapcss) contains the following code:

canvas {
fill-color: #a3c3ec;
background-color: #a3c3ec;
default-points: false;
default-lines: false;
}
way[natural=coastline] { width:1; color:#0000FF; }

I have used both ‘fill-color’ and ‘background-color’ properties to check if one of them works but the produced file has the default canvas color (white background).

I open the command line tool of OsmSharpDataProcessor and provide as an input the following:

odp --read-xml aegean.osm --write-scene scene=aegean.map css=MyMapCssFile.mapcss cutoffs=15,13,10,7

However, the canvas color of the produced aegean.map file does not change to blue.
Have I missed anything in the mapcss file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants