Tag Info

New answers tagged

0

A few thoughts: simplest: remove borders at low zoom. shrink via carto: use line-offset: <some small negative number> to inset the building border and remove the polygon-fill, though this can create strange artifacts around corners. shrink via PostGIS: use ST_Buffer(way, <negative buffer in meters>. See ST_Buffer doc Last one is probably ...


1

I think you are asking the wrong question ... Leaflet does the right thing: the tiles you see in your errors belong to your boundaries. To be convinced of it, please have a look at this JSFiddle where your boundaries are shown as a rectangle. You see that Leaflet only loads the tiles needed and that 14/4105/5993.png is shown


0

At first glance, it appears that the only styles missing are the styles that rely on a zoom level. When exported in MBtiles, your "map" is seen in a map context where you have zoom levels, and as such, your styles are rightfully applied. However, when exporting a static map, by default there is no zoom level applied during rendering. I've snooped a bit and ...


2

We use a trick like: <style type="cartocss/text" id="simple"> #earthquakes_cdbjs_lesson3{ marker-fill: #FF6600; marker-allow-overlap: true; ... } </style> and after that cartocss: $("#simple").text();


1

Not sure if that fits to your use case, but I managed to self-host my exported vector tile source with tilelive and consume the vector tiles with Mapbox GL JS. See my answer to my related question. Styling is done in Mapbox GL format not with tm2z.


1

You could try the text-spacing property, which controls 'distance between repeated text labels on a line (aka. label-spacing)'. Here's a link to the CartoCSS docs: https://github.com/mapbox/carto/blob/master/docs/latest.md#text-spacing-unsigned You can also find some other helpful properties there for label placement, including text-placement and ...


1

SQLite does not care about types and VARCHAR and NVARCHAR mean just the same for it http://stackoverflow.com/questions/3930501/difference-between-varchar-nvarchar-in-sqlite. The real problem is in the GDAL MapInfo driver that does not handle character encodings. There are some workarounds: Convert MapInfo data into MID/MIF format with ogr2ogr and convert ...


0

Did you try SVG export? SVG is vector format and may be rasterized with any resolution after being exported.


0

OSM relations are stored in the Postgis database with negative id to distinguish them from ways that could have the same id. So you have to put that negative osm_id value into your style definition. Apart from that, you could as well look into the polygon table. Relations of type boundary or multipolygon that form a closed line should land there (unless the ...


1

You can easily fill areas with textures and patterns by bringing in external images. You might create the patterns yourself in image editing software such as GIMP or Inkscape, or find ready-made images from resource websites such as Subtle Patterns or Free Seamless Textures. Taken from the TileMill Documentation where you can find an easy ...



Top 50 recent answers are included