I am generating maps using Mapnik and OSM data (postgres and shapefiles). My problem is that quite a few areas, most of which I believe are considered "landcover", are rendering as the background color. The areas render as background color regardless of zoom level.
For example, in between streets, everything is blue. There are some forests that render as expected, but most of the residential areas are just blue.
I am using Mapnik 3 with a stylesheet. This is running on Ubuntu 16.04.
The images below show what I am generating, and what I would like to see (based on what is on Openstreetmaps).
Any suggestions as to where I should look to solve this problem would be greatly appreciated.
Thanks.
What I'm getting
OSM
The problem was caused by some invalid zoom levels and/or MinScaleDenominator, MaxScaleDenominator values. I have not narrowed it down completely, but by removing those attributes, I'm seeing the land again.
Thank you for the help.
It is an issue with your stylesheet, if it's a custom one I recommend loading it into TileMill and playing around the LandCover and Area colours until you're satisfied.
If you were wanting a relevant point of reference, check out the Stylesheet Configuration to get your own copy of OSMBright, so you can compare the rendering styles.
Update A link for the OSM style look: https://github.com/gravitystorm/openstreetmap-carto
Related
So my problem is, that I have a tileset which geometries are Multipolygons and when I want to display the district names it places multiple labels instead of just one centered. Is there a way to fix this?
Here is a screenshot for clarification
The data comes from a postgis database, I just export it to a CSV and upload it to mapbox.
I have tried converting the Multipolygon into single Polygons but that ended in the same result.
I also played around with the text padding in mapbox studio but with this option the label placement is very off.
Is there possibly a way trough Mapbox GL JS to fix this issue?
You need to generate a separate label layer. You can use geojson-polygon-labels to do this.
I have a problem with Mapbox Studio. I'd like to make water layer appear transparent and land area in some color. When I remove or modify the Map {} background to be transparent, all the change to transparent except water which remains to the color it is set to. If i try adding fox example, #countries { polygon-fill: #ff0000 }, it does nothing to fill the land covered area.
I have failed to find any good reference to what would work for the current version of Mapbox. The things that work for tilemill does not seem to work for Mapbox Studio. Any pointers or advises would be greatly appreciated. Thanks!
In Mapbox Studio Classic (desktop application), Map refers to all of the land, and (if you're using mapbox-streets-v5 or mapbox-streets-v6 as your data source) #water has its own selector. If you set Map to some color value, all of the land will be that color. If you set #water to some color value, all of the water will be that color. Keep in mind also that rivers and streams can be styled via the #waterway selector.
I am following the source quickstart tutorial. I have followed the tutorial all the way through, and am having trouble displaying the earthquake data (red circles) above the land vectors.
According to the symbol drawing order documentation:
“Higher” layers obscure “lower” ones.
However I'm not finding this to be the case. Please see attached screenshot:
The 'earthquakes' layer is the 'higher' layer, I think. I am using the 'Comic!' base map styles. Since the road lines also appear to 'mask off' the land vectors and show the earthquake data below, I'm wondering if this is causing the issue, but looking through the styles there's nothing obvious I can see.
Thanks for any help.
The documentation is correct, however the comp-op family of CartoCSS properties affect how the colors of different layers interact with each other. In this case, the marker-comp-op: screen from the quickstart example was designed to work well over a darker satellite background, but becomes nearly invisible over solid white.
If you remove the marker-comp-op property or change it to a different compositing operation such as multiply the earthquake markers should show up fine.
I am new to OpenstreetMap and Leafletjs. I am trying to implement a map displaying journey time information on motorways (also called highways in some part of the world) by using different colors to show road congestion and the problem I'm facing is, once the map tiles are rendered, it comes with all information, like town/city names, road names etc.
On the basis of road information that I receive, I create road colorings in an overlay that sits on top of the tile layer. The problem is, once that happens, the road colorings cover the road names that appear on the tile layer. The problem can be seen in the image displayed below.
Is there a way, I could extract the road names so that I could put it in a layer above the road coloring layer so that road names appear on top of road colorings.
Thanks for any sort of help, Looking forward to some replies.
Thanks
In theory, you could create two sets of tiles: one with the road lines, another with the shields (labels). Render the shields tiles with a transparent background. Then hack Leaflet around to have a second tile layer above the overlay layer.
However... that's a whole bunch of hassle for a fairly simple problem. So: why not render the road numbers alongside the roads, rather than on top of them? That way, your overlay line won't obscure the numbers. Here's an example of a style that does this (disclaimer: my site!).
Assuming you're using Mapnik to render your tiles, you'll want to use TextSymbolizer rather than ShieldSymbolizer. Customising the style is (of course) much easier if you're using TileMill rather than pure Mapnik XML.
As you say, the roadnames (here ref icon symbolizers) are part of the OSM raster map tiles and can't changed easily.
So the easiest solution would be to switch to a mapstyle without labels.
Another idea would be to add more alpha to your cusom GPS track, so it get's more 'hollow' and fits better in the mapstyle. But the default OSM style isn't good for adding informations on top, as this basemap is already to detailed. Maybe it makes sense to use another one:
http://wiki.openstreetmap.org/wiki/Featured_tiles
I'm completely newbie to Qt
i want to create a 800X600 window that just show some circle and be able to manipulate pixels of the form. there is no interaction between user and form(no click, no dblclick,...) it just shows some circles with one color and lines with different pixel colors(each line may have different pixel colors)
also i want to be able to change the coordination system, i mean change it from top-left to the center of the window. could anyone help me do that with some sample code?
thanks in advance for your reply.
Please try downloading the Qt Creator (IDE), then reading through the tutorials. There's a whole host of very useful information provided for free, including a lot of the code samples you are looking for.
The following examples might also be of particular interest:
Animation Framework Examples
Graphics View Examples
Painting Examples