Tag Info

Hot answers tagged

21

Unfortunately, there isn't one yet. I've asked myself the same thing occasionally but I've found a handful of examples through the years that I've drawn some inspiration and learned through. Unfortunately, most authors aren't putting their all or some of their work public. Also, there's been a couple small changes in carto, some of the code may not be 100% ...


15

A great solution is to use QGIS as you gui for PostGIS. QGIS is a fully-functional GIS (I prefer to think of it actually as a meta-GIS given that it is built on many GIS packages). It has built-in support to connect to PostGIS and therefore gives you all the tools tou need to view, edit and create maps from your data.


10

This somewhat exists - here's a page of the various converters available. Exporting CartoCSS from other tools requires both mangling the native format and normalizing differences between how they treat data & the capabilities of the renderer.


9

There are several open data initiatives on elevation (terrain) data. A website with several alternatives (I have not checked them all) is available on this website: http://www.terrainmap.com/rm39.html For 90 meter accuracy dataset I would try the Shuttle Radar Topography mission (wikipedia article). I have used it on several occasions. An example of ...


9

Definitely open to adding more features/functionality to my QGISTileMillExport plugin (as well as adding it to one of the plugin repos for easier installation once it's a bit more mature). I stubbed it out as a proof of concept for my own use a few months ago. As for workflow, I saw it as a way to bridge between data/rough styling in QGIS and final ...


8

I found it at last.Tilemill commands should run via node that included in the same directory with index.js file.I was trying to run directly index.js as index.js export .. which is not working. @Sunil's redirection to support page allowed me to install ubuntu and see code was working then i realized that it was all working with nodejs functionality.After ...


8

There's a lot of subjectivity still in play, but I think a broad answer to your question is that it's getting easier every day to use GeoJSON directly in a leaflet map without tiling, and this is ultimately a good direction for interactive maps to be going. As such I tend to build maps using your third option above. That comes with a few caveats. You ...


5

It is currently not possible to add mbtiles to TileMill. You're best bet is to use one or more GeoTIFFs instead. http://support.mapbox.com/discussions/tilemill/16-can-you-add-mbtiles-to-an-existing-project


5

I tried to explain the relevant details of your interest below. I want to say briefly, if you want to build great application what you're looking for is that OpenLayers. OpenLayers is an open source JavaScript library which provides lots of rich method for building web-based application similar to Google Maps. it supports lots of events and controls beside ...


5

That will work as Mapnik can be configured as a WMS (http://code.google.com/p/mapnik-utils/wiki/WmsInstallGuide) but I think you are supposed to just build out all the tiles in the world and serve them directly to openlayers (assuming that you have enough disk space). See http://openlayers.org/dev/examples/tilecache.html for an example.


5

(Cross-posting from GitHub for the benefit of StackExchangers..) Both filters must be connected to a layer selector. There are two options that require only specifying the style once: #tor_centreline [FCODE=201200], #tor_centreline [FCODE=201201] { line-width: 0.5; line-color: lightgray; } or #tor_centreline { [FCODE=201200], [FCODE=201201] { ...


5

When you add a layer to a TileMill project, you need to also create a style definition for that layer. If there is no style definition, nothing will show up. When creating a new layer, you can click the 'Save & Style' button to have TileMill insert some default styling code for you. Based on your first screenshot (in which I see two line shapefiles) you ...


5

Natural Earth has many top-notch free products that may work for you, including: Natural Earth I with Shaded Relief, Water, and Drainages Shaded Relief Basic


5

You can't use zoom as a variable at the moment as you mentioned. I've read this is planned (and I'm excited to see it implemented too). Here's one work-around, etc: #ways[highway="trunk"] { line-color: #c99; [zoom=10] { line-width: 1; } [zoom=11] { line-width: 1.1; } [zoom=12] { line-width: 1.2; } If you have multiple highway types, you ...


4

In regards to TileMill, you export a map as MBTiles and then can either turn it into flat image files with mbutil that you can put on a web server or S3, or you can use TileStream to serve the MBTiles file dynamically. Like any tile server, you then use OpenLayers (or Modest Maps, Polymaps, Google Maps) for a Javascript API.


4

You can buy high resolution satellite images from DigitalGlobe or GeoEye. You are not limited to these two map providers. There are too many options outside of these. You can also try Google Earth Pro for exporting images and with your license you can use Google Earth Pro images and data for marketing purposes as long as this data is not sold to any third ...


4

Unless you have access to some kind of geospatial server such as GeoServer, MapServer, or access to any ESRI Server products, rendering the GeoTiffs will be a problem. What I have done in the past when lacking a geospatial server was convert what I can via QGIS to a geojson file. QGIS can handle several formats of data which can be exported in several ...


4

Woohoo! Figured it out. This thread had the solution to change the CSS rather than the JS. .olImageLoadError { /* when OL encounters a 404, don't display the pink image */ display: none !important; } This help article was helpful too, but I have not idea how to tell TileMill/MapBox to generate blank tiles rather than missing tiles. I'll get there ...


4

An alternative to the WMS route: Use GDAL2Tiles to create a TMS tileset out of your imagery. Then load up Leaflet, which is a lighter-weight alternative to OpenLayers, a javascript map client. Design buttons that interact with it. This arrangement will let you portably run the above through any webserver, without requiring the configuration or ...


4

In this Wiki we maintain a list of free data sets: http://grass.osgeo.org/wiki/Global_datasets#Elevation_data For several also the import commands for GRASS GIS are stated (in many cases read with GDAL, hence the GDAL tools should work as well).


4

Why don't you try the OSGEO Live DVD, check this website for more information and download.


4

Check this CartoCSS port of the OpenStreetMap default style. https://github.com/gravitystorm/openstreetmap-carto


4

Echoing Bill: it depends. I would say never/rarely do the second option. Keep your data and styling separate. The first and third options might be rephrased as "when should I use a service to render map features?" and "when should I use Leaflet to render map features in-browser?" For me, I try to do the third option whenever I can. Rendering features in ...


3

UMN Mapserver and Geoserver are both able to render TIFF and shapefiles. On the consumers end, Openlayers would be appropriate.


3

It's not MapBox issue it is due to mistake in your code. OpenLayers.Layer.XYZ have three groups of parameters, so you need move isBase layer option into third group: var dark = new OpenLayers.Layer.XYZ( "Dark layer", ["http://a.tiles.mapbox.com/v3/billted98.map-cfmrdwtw/${z}/${x}/${y}.png"], { sphericalMercator: true, ...


3

I think it would depend on your needs and available resources. You can use both a map server and a tile server. For example, Geoserver comes with Geowebcache, a tile server. I know that a server map use spatial data from a DB, it generate image that can be read by client map library (openlayer ...). For example if I have a shapefiles and I don't need ...


3

This question was answered here: http://support.mapbox.com/discussions/tilemill/1773-tilemill-shows-black-lines-around-raster-layers-2. Solution: use VRT files to reference multiple rasters.


3

Unlike normal CSS, the order of your properties matters in Carto - reverse the marker and text rules and it'll reverse their order in rendering. You must also make sure to set text-allow-overlap to true.


3

The default OSM preview page's URL is ip_address:port_number/osm/preview.html#10/37.8000/-122.2600 which indicate the zoom level is 10, so I guess you did not export mbtiles file up to that zoom level that's why TileStache generates empty page then you could manually change the zoom level and lat/lon value to force TileStache to work out preview page. I ...


3

I recently came across a new plugin for QGIS 1.9 called QTiles. It's development was announced Dec 2012 on the QGIS Developer forum. QTiles designed to generate raster tiles from QGIS projects according to the Slippy Map specification [0] and supports two output types: directory and ZIP-archive. I'm not sure if this works directly with TileMill, ...



Only top voted, non community-wiki answers of a minimum length are eligible