I am looking for a static maps API (similar to https://www.mapbox.com/developers/api/static/ ) that can serve the map without an underlying base layer. My intention is to generate images with the roads/labels layer on top of a custom base layer. Does such a thing exist? If not, what can I use to create it?
-
Is there a particular area you're looking at? – Branco Dec 16 '15 at 18:49
-
You can create your own google map styled map then request the style in static form developers.google.com/maps/documentation/static-maps – Mapperz♦ Dec 16 '15 at 18:56
-
@Branco the whole world, but particularly the continental united states – Mike Furlender Dec 18 '15 at 16:15
-
I guess you could create something with node and mapnik, similar to this question stackoverflow.com/q/30374742/1504487 – bennos Dec 22 '15 at 8:24
Using the Google Static Maps API
Try:
Then use the z-index method to overlay you image (with transparency) example http://www.corelangs.com/css/box/ontop.html
Mock up Example: (needs refining) http://jsfiddle.net/yUbV9/146/
-
Excellent, thanks. I'm just going to give it a few days for other people to reply, and then I'll mark your post as the answer (so long as no one gives another one). Would you happen to know if I can query this with a lat/lng bounding box? – Mike Furlender Dec 18 '15 at 15:56
-
I took a closer look at this and realized that its not actually transparent at all. If I was to overlay this on top of my data (which is essentially a heatmap over the united states), the white in that static map would lighten the result image. What I want is to be able to place roads and labels over my basemap without distorting the basemap or lightening it. – Mike Furlender Dec 18 '15 at 16:14