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

learn more… | top users | synonyms

2
votes
1answer
19 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
0answers
26 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
42 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 ...
-1
votes
0answers
21 views

Leaflet js , z-index for geojson polygon

Can I set z-index for geojson polygon so that it lies between tile layer?
0
votes
1answer
25 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
27 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
19 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
18 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
21 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
36 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
10 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
246 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
19 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
45 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 ...
1
vote
1answer
37 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
35 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
35 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
15 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
29 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
111 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
129 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
145 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
34 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
95 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
73 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
45 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
37 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
59 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
89 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
49 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
75 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
157 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
99 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
99 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
18 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
179 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
91 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
149 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
83 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
139 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 ...
0
votes
0answers
31 views

CartoCSS Performance Considerations?

Just wondering if anyone knows how many lines of code CartoCSS can handle before it starts to affect performance? I'm currently using CartoDB and have around 400 lines of code, but haven't noticed ...
1
vote
1answer
205 views

Calculate distance and surface with mapbox api

Is there a way to draw lines and polygons (with geojson) and calculate distance and polygon surface with the mapbox api or leaflet? I wish to have the same tools as in geojson.io with the extra ...
0
votes
1answer
48 views

Mbtiles from dedicated server to mapbox account

I process Landsat Imagery on a dedicated server and generate mbtiles. Is there a way to upload the mbtiles files straight from my server to my Mapbox account?
0
votes
2answers
107 views

CartoCSS layer visibility

I am working in TileMill and I have a number of layers in two different levels of detail. I have assigned classes to the layers "highdetail" and "lowdetail", and I know how to use the zoom selector - ...
3
votes
2answers
139 views

Is it possible to add house numbers using the Mapbox Street Vector Tiles source in Tilemill2?

Title says it all. Does anyony know if the house number is included in Mapbox’ vector tiles, and if so how to access it for styling? Thanks for any advice!
5
votes
1answer
616 views

Generating Interactive Tiles using Nodejs, Mapnik, and PostGIS for Leaflet

I am looking to do something like this but where I have all the data on the same server. I've been following through the set of tutorials @ sparkgeo.com/labs/big/ and I'm having some difficulty. ...
0
votes
1answer
124 views

Hover effects using CartoCSS: Is this possible?

I'm trying to make a simple map of parcels in TileMill. Right now when I hover over a parcel, the information for that parcel appears in a teaser. That's simple enough. However, when working with ...
1
vote
1answer
103 views

Why doesn't LeafletJS complete the conversion when re-projecting to Spherical Mercator?

When I use the Mapbox Leaflet pre-packaged Projection class SphericalMercator to project a lat/long coordinate into EPSG:3857 I have to multiply the result Leaflet provides by the earth's radius. ...
0
votes
1answer
128 views

Carto CSS variables

Does anyone know whether it's possible to use a variable within an attribute selector. For example I define my variable at the top of the file: @lowZoomMax: 9; And then reference it as follows: ...
1
vote
1answer
117 views

Opacity contrl for mapbox map with several layers

This is an example of how opacity can be changed for a Mapbox.JS map: https://www.mapbox.com/mapbox.js/example/v1.0.0/opacity/ The example shows only one layer used. With barely any experience in ...