Tagged Questions

A company that creates different tools for styling and deploying maps as well as providing services for hosting maps

learn more… | top users | synonyms

0
votes
0answers
9 views

How to toggle legends with layers in Mapbox.js?

Map is currently toggling 23 layers using var = overlays. I want the respective layer legends to appear when layer is toggled on, and show legends of all ON layers. var map = L.map('map',{center: ...
0
votes
0answers
17 views

Using Mapbox Studio (aka Tilemill 2) to create a self-hosted map

What would be the neccessary prerequisites to run a map/tile-server using an exported vector source and tm2z-styleset? Has anyone set up a working environment for that? Is Tessera a possible ...
0
votes
0answers
43 views

How to style mapboxgl point source

I have created a simple mapboxgl map, and I am adding a source that contains point data. I am trying to then apply a style to the data. The approach I am taking works well for polygon & line data, ...
0
votes
0answers
34 views

How to render Mapbox Vector Tiles from OSM data?

I'd like to render my own vector tiles in the Mapbox Vector Tile format (MVT) format using OpenStreetMap data (ultimately for use with Mapbox's hot Mapbox GL JS client renderer). Is TileStache + ...
0
votes
0answers
32 views

Difference between MapBox and CartoDB [duplicate]

What is the difference between MapBox and CartoDB ?
1
vote
1answer
51 views

How are OSM tags mapped to fields in Mapbox Streets vector tiles?

I recently started experimenting with Mapbox Studio and have encountered some discrepancies between feature tags in OSM and the corresponding feature fields in the vector tiles from Mapbox Streets. ...
1
vote
0answers
44 views

Export a style from Mapbox Studio to be used in Mabox GL-JS

I designed my map with Mapbox Studio. However I would like to use my design in Mapbox gl-js. The styles are not CartoCSS but a JSON. Is there a way to export my design to this JSON format? They seem ...
0
votes
1answer
31 views

Can't add a postgis layer in tilemill (symbol shown grayed)

I want to add a postgis layer to a tilemill project but the symbol is shown grayed and I can't select it (shown on the picture below). I followed this instructions.
5
votes
1answer
116 views

TileMill fails to load Europe data from PostGIS. What am I doing wrong?

The Problem: Using OSM-Bright in combination with an imported (osm2psql) Europe shapefile, tiles won't load unless I have 2-3 layers active (of the total of 29). I don't have this problem with an ...
1
vote
1answer
27 views

mapbox.js 1.6.2 - change tile set on zoom levels

Alright, this is what I've got. What you've suggested doesn't seem to be working. I need to change the basemap at a certain zoom level... var map = L.mapbox.map('map', 'wmarci.i6n42nl5', { ...
3
votes
1answer
40 views

Web Maps for Collecting Information in a Questionnaire

I am working with a Non Profit group who are looking for collect information around urban cycling routes. They would like to know the routes people take to get from point A to point B. I thought, ...
2
votes
2answers
47 views

Search and zoom json features in Leaflet

How can I add search box to map that allows user to search>zoom to polygon name. If there are 100 polygons, user can type name of polygon (i.e., Symantec) then map zooms to matching county?
2
votes
1answer
45 views

find inner bounds of a polygon in leaflet

How can I find the inner bounds of a polygon in leaflet? I a want to plot points randomly in polygoon but when I say Layer.getBounds() I get the bounds and I can still plot the markers ...
2
votes
2answers
58 views

What is the recommended workflow for using TileMill and OSM?

Using osm2pgsql, I imported an OSM extract into a Postgres database. Then I made a layer in in TileMill that contains the data from Postgres. The map was exported to a MBTiles file. At this point, all ...
0
votes
1answer
37 views

Add image to bottom corner of MapBox.js map

I have a MapBox.js map up and running and I would like to add an image to the bottom left corner. I tried adding in this code: <img src="IMAGE URL" height=100 ...
1
vote
0answers
40 views

Trying to Offset Overlapping Transit Lines/Routes - Is There a Way?

I am trying to create a bus route map in Los Angeles. I realize that it is shooting for the moon (perhaps it is impossible to do well) since there are so many overlapping routes, but I think I've gone ...
1
vote
2answers
33 views

How can I down load osm style sheet or mss file

I have down load shape file from OSM,then I open it using TileMill .The next step is create style sheet ".mss" file.How can i download the exact OSM's style sheet?
0
votes
0answers
21 views

Alternative map solutions for a web application behind a paywall (paid webapp) [duplicate]

I am planning to start developing a map enabled application behind a paywall (paid webapp). Since Google requires to license Google maps API for Work (by contacting a representative) I have no idea ...
0
votes
1answer
42 views

Highlight polygon on hover and click in TileMill

I have created a MapBox.js map with several layers of polygons each with hover/click interactivity to show attributes about each polygon. I want the polygons to become highlighted upon a user ...
1
vote
1answer
54 views

Leaflet - how do you get individual markers from a featurelayer?

In Leaflet, if I have a feature layer filled with markers, how do I get these markers back from the layer? I want to apply different popups to each individual marker, instead of the entire set. I ...
0
votes
0answers
15 views

Jquery slider cycling through swipable layers - getting a bug

I'm building a tool that allows the visitor to cycle through rendered maps of low and high emission climate data projections. The high and low sets by themselves work great, but when I am using the ...
8
votes
3answers
626 views

Any reason to use TileMill if Mapbox Studio is meant to replace it?

I'm new to using TileMill and it still seems like a popular cross-platform package, though I keep running into common bugs and errors with it (on Mac OSX). On Mapbox's page, it says that Mapbox Studio ...
0
votes
1answer
23 views

Why isn't Mapbox viz styled how it is in projects?

When using the Mapbox "Projects" editor, I'm finding the previews do not style the same as the end results on the page. Is anyone experiencing similarly? In Projects, my map looks like on the left. ...
1
vote
1answer
57 views

Why doesn't my Mapbox + Leaflet viz look retina-friendly?

This is probably a very simple question but it's not clear to me. The Mapbox docs say: When you create a project from the editor, Retina (high resolution) tiles are automatically used on ...
2
votes
1answer
70 views

Leaflet: How do you use removeLayer?

This is driving me mad. See the Leaflet tutorial for adding a layer control to your map: L.Icon.Default.imagePath = "Scripts/images"; var mapUrl = ...
0
votes
1answer
40 views

How to use a Geojson layer as a background mask?

I have some Geojson neighborhood shapes that I am using to create a small multiples chart. They are like this: I want to give them backgrounds for the area they represent. I want the streets and ...
1
vote
0answers
39 views

CartoCSS : Style a road using a road_label rule

The parisian ring road (and probably others) usually looks a bit off (especially at low zoom levels), because in OSM it has been created as two independant 'main' roads, instead of one 'highway'. ...
1
vote
0answers
16 views

How to know which Tiles build a rendered Image obtained by a Map Query?

as Test Purpose for my app, I want to know exactly, which Tiles were used to render the result image I get by query. I.e. I want to see a bounding box of 500px*300px with zoom 13 of Location ...
2
votes
1answer
34 views

TileMill: How to mask layer without loosing background

I have a large geotiff with elevation gradient which I want to use to colour my map. However the coastal line of the geotiff doesn't excacly match my shapefile so I want to mask it. The problem is ...
0
votes
1answer
164 views

Download mapbox default style as tiles

I need to have the tiles of a small city as PNGs. The style should be the same as in https://www.mapbox.com/editor/? Can I export the map there for a certain bounding box to tiles (or mbtiles)? I have ...
3
votes
1answer
225 views

Why aren't Mapbox vector tiles rendered in the browser?

Would it be technically possible to have Mapbox's compact vector tile format sent to the client (instead of PNG tiles), then rendered inside the browser with JS code? Second question: when using ...
1
vote
2answers
227 views

How to style geojson polygon using L.mapbox.featureLayer()

I have this code: var SupIncend = L.mapbox.featureLayer().addTo(map); var ArbolesAntes = L.mapbox.featureLayer().addTo(map); var ArbolesX = L.mapbox.featureLayer().addTo(map); var ...
2
votes
0answers
41 views

Stray horizontal lines after converting from GeoJSON to topojson

After converting a GeoJSON file to topojson, and loading the topojson into Leaflet, stray lines appear in the resulting map. Like this: What is causing this? If I view the GeoJSON, these stray ...
1
vote
1answer
115 views

TIleMill multiple design feature of the label road

Does TileMill have possibility to design features/labels in my case based on more than one command? I have this carto CSS code #mainroad_label[type='primary'][zoom>13], { text-name:'[name]'; ...
2
votes
1answer
83 views

How to edit layers which are using via OSM Bright in Tilemill

How could i edit a map which is edited via OSM Bright in TileMill? Layers are in TM added via PostGis. OSM Bright it's simply built according to informations here. I need delete some roads also delete ...
1
vote
1answer
60 views

Associating location data from PostGIS for a Choropleth map?

I'm trying to build my first choropleth map from data that we have stored in our PostGIS enabled Postgres database. So far I've been able to build a map on Mapbox using a topojson set of UK postal ...
1
vote
1answer
40 views

How can i resolve problem with bounds for export?

How could I set up bounds in TileMill if i don't want to upload the country around? I simply want to upload my created island in TileMill to Mapbox. Is there a way to do it? I am using OSM Bright for ...
2
votes
2answers
81 views

Rotating labels in cartocss with controlling the rotation basepoint

I am trying to rotate multiple text labels in cartodb/cartocss. I am offseting each label so that they appear to be stacked using text-dx and text-dy. Using text-horizontal-alignment: left; and ...
3
votes
1answer
114 views

Where i can find Mapbox tiles gallery

I have discovered that cloudmade tiles service has been discontinued, so to switch to mapbox tiles, i imagine that i can find a gallery (like in cloudmade ) where i can choose the tiles style ...
0
votes
1answer
55 views

What projection to use with Mapbox base/reference layers?

excuse me if this has been asked before, but I can not find answer after heavy googling. What coordinate system/projection does shapefiles need to be in to be alligned correctly with mapbox reference ...
3
votes
1answer
77 views

Displaying large number of polygons on web map?

I've started working on a project with a huge number of polygons, and I'm unsure of how to display/host it. The map I'd like to end up with will have three layers: 1) Shaded polygons representing ...
0
votes
1answer
232 views

Custom OSM tiles with Mapbox and/or CartoDB

For a newspaper, we would like to use CartoDB's editor to produce quick overview maps with small amounts of geometry and information such as tooltips etc. For this job, the CartoDB editor seems to be ...
3
votes
1answer
107 views

Using interactivity from multiple layers produced in TileMill in a single map

I have a MapBox.js map with several layers here . I would like to be able to use TileMill's teaser and full interactivity on a few of the layers, but I have only been able to accomplish this for a ...
1
vote
1answer
122 views

Draw icons and lables only for certain entities in Tilemill 2

I've recently started to use mapbox' TileMill2 to play around with vector tiles. It's pretty nice and, in comparison to Tilemill(1), much more faster. Exactly what I was searching for. Now I'm trying ...
0
votes
0answers
21 views

Tilemill logs - Is there a way to remove [tilemill] prefix

In the Tilemill logs, is there a way to remove the [tilemill] prefix of every line? I'm trying to add the timestamp of each log line in the tilemill logs. I can easily do it with log-prefix module. I ...
1
vote
2answers
213 views

Adding multiple layers with timed delay in Mapbox/Leaflet

So I've got a Mapbox map showing data split into several layers. I'd like the user to be able to click a play button to call the function "gogogo", and then the layers get added one at a time every 1 ...
0
votes
1answer
108 views

TileMill: Can't use both background-color and background-image?

Very new to TileMill and am working on my first project. I'm using a pattern image to enhance some areas on the map, water being an example. I've added the pattern to the water areas on my layers, ...
0
votes
1answer
163 views

Tilemill 2 (not v1): How to set map extents or bounds for export?

I'm using Tilemill 2 and trying to set bounds or extents in order to reduce file size but I can't figure where to do that. I'm also getting a 422 error when trying to upload to my mapbox account and ...
0
votes
1answer
88 views

Getting coordinates to create geojson

I have a geotiff that I have been working with in tilemill and I would like to select portions (buildings) in the map and create new layers as geojson objects. My issue is I don't know how to get the ...
2
votes
0answers
156 views

TileMill Exports Failing

I'm having trouble exporting my map in TileMill (v0.10.1). I'm using OSM Bright with a PostGIS database connection to import OpenStreetMap data. When exporting an SVG or PDF through the user interface ...