Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Leaflet.GridLayer.GoogleMutant
Leaflet.GridLayer.GoogleMutant
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 20
    • Issues 20
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 3
    • Merge Requests 3
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Iván Sánchez Ortega
  • Leaflet.GridLayer.GoogleMutantLeaflet.GridLayer.GoogleMutant
  • Issues
  • #10

Closed
Open
Opened Oct 14, 2016 by Richard Carman@hypergreatthing

Feature request - Google traffic layer

Since this is the only workable plugin on leaflet 1.0 to add google layers, something that's sort of missing is getting google traffic onto leaflet. Now i did modify the googlemutant.js to include google traffic, but the tiles themselves aren't refreshing properly. All i did was add:

var trafficLayer=new google.maps.TrafficLayer();
        trafficLayer.setMap(map);

to _initMutant right before the this._mutant=map;

It's probably not the correct way, which is why i'm requesting an official way of doing this.

Thanks,

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: IvanSanchez/Leaflet.GridLayer.GoogleMutant#10