JMDDesigns

JMDDesigns supports this item

Supported

This author's response time can be up to 5 business days.

Popular questions for this item

How do I remove the Night Mode?

From Lines 5 to 22 of routeplanner.min.js, you should see the following:

var styles = [{
    stylers: [{
        "invert_lightness": true
    }, {
        saturation: -100
    }]
}, {
    featureType: "road",
    elementType: "geometry",
    stylers: [{
        lightness: 40
    }, {
        visibility: "on" 
    }]
}, {}];
var styledMap = new google.maps.StyledMapType(styles, {
    name: "Night Mode" 
});

Replace this with the following code:

var styles = [{
    stylers: [{
        "invert_lightness": false
    }, {
        saturation: 0
    }]
}, {
    featureType: "road",
    elementType: "geometry",
    stylers: [{
        lightness: 40
    }, {
        visibility: "on" 
    }]
}, {}];
var styledMap = new google.maps.StyledMapType(styles, {
    name: "Normal" 
});

And that’s it! Upload it and overwrite your existing file on your server/local test site and preview it!

How do I change the Route Mode?

On line 52 of routeplanner.min.js, you should see the following code:

travelMode: google.maps.DirectionsTravelMode.DRIVING
Replace this with a travel mode of choice:
google.maps.TravelMode.DRIVING
google.maps.TravelMode.BICYCLING
google.maps.TravelMode.TRANSIT
google.maps.TravelMode.WALKING

Each mode is explained inside the Documentation on “Map API: Part 3”

Contact the author

This author provides limited support for this item through email contact form.

Item support includes:

  • Availability of the author to answer questions
  • Answering technical questions about item’s features
  • Assistance with reported bugs and issues
  • Help with included 3rd party assets

However, item support does not include:

  • Customization services
  • Installation services

View the item support policy

by
by
by
by
by
by