Skip to content

Commit

Permalink
Merge pull request #685 from sandrotosi/gmapstransit
Browse files Browse the repository at this point in the history
feat: add Google Maps Roads+Transit map
  • Loading branch information
modos189 authored Jan 13, 2024
2 parents a800b37 + 5391997 commit c936056
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/code/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ function createDefaultBaseMapLayers () {
var trafficMutant = L.gridLayer.googleMutant({type: 'roadmap'});
trafficMutant.addGoogleLayer('TrafficLayer');
baseLayers['Google Roads + Traffic'] = trafficMutant;
var transitMutant = L.gridLayer.googleMutant({ type: 'roadmap' });
transitMutant.addGoogleLayer('TransitLayer');
baseLayers['Google Roads + Transit'] = transitMutant;
baseLayers['Google Satellite'] = L.gridLayer.googleMutant({type: 'satellite'});
baseLayers['Google Hybrid'] = L.gridLayer.googleMutant({type: 'hybrid'});
baseLayers['Google Terrain'] = L.gridLayer.googleMutant({type: 'terrain'});
Expand Down

0 comments on commit c936056

Please sign in to comment.