Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there anyway to style base maps using Leaflet? I know there are quite a few options for loading different pre-made styles (such as Stamen, Mapbox, etc...), but I am looking for a way to create my own style without going back to Google Map's API. Or is there a way to style one of the particular base maps?

Basically, I'd like to keep using Leaflet for this project as it is quite nice and simple, but without that ability I'll have to move on. Thanks.

Edit: Is there a way, through Leaflet, to use Google Maps custom styling? I like the coding aspects of Leaflet as compared to GMaps, but still would like the flexibility in terms of design that custom styling of the tiles gives me. As this is a very small project, I don't want to set up my own Tile Map Server if possible.

share|improve this question
2  
I think you need to describe what you mean by the base map, and why you think its a leaflet issue. Leaflet (typically) just shows map tiles from a Tile Map Server (TMS). How they get generated / styled is nothing to do with Leaflet. Perhaps go up a level and describe why you think you need to do something different, and the higher context (e.g. map data source). –  BradHards Aug 9 '12 at 7:44
    
By the way, Mapbox does let you customize their base map. –  Scro Aug 9 '12 at 9:43
    
Openlayers works with styled google maps. So are you sure that with leaflet you can't show customized google map layers? –  user18466 May 23 '13 at 21:05
    
Not sure at all. How would I go about doing that? –  Josh May 24 '13 at 22:01
    
@Josh You can. Here is an example of using Google Map's Tile Service. But always check TOS to make sure you don't have an outage. –  RomaH May 28 '13 at 22:00
add comment

1 Answer 1

up vote 4 down vote accepted

I don't think google maps custom styles are going to work anywhere except google maps...

Perhaps you could consider Cloudmade's styling or Mapbox styling as suggested by Scro.

share|improve this answer
    
I would second this and add that the cloudmade style editor is very very good! –  Michael Markieta Aug 9 '12 at 16:19
    
Cloudmade was the way to go. As Cloudmade and Leaflet are made by the same company, their integration is pretty good. But they left off Cloudmade as a potential in their list of "other" providers so I didn't catch it. Thanks. –  Josh Aug 14 '12 at 6:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.