Skip to content

Commit

Permalink
Improve documentation on default options
Browse files Browse the repository at this point in the history
  • Loading branch information
magic890 committed Mar 7, 2016
1 parent ce14dcd commit f8056f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ If the aspect ratio of your custom map is not the default `16:9` (`0.5625`), you
popupTemplate: function(geography, data) { // This function should just return a string
return '<div class="hoverinfo"><strong>' + geography.properties.name + '</strong></div>';
},
popupOnHover: true, //disable the popup while hovering
popupOnHover: true, // True to show the popup while hovering
highlightOnHover: true,
highlightFillColor: '#FC8D59',
highlightBorderColor: 'rgba(250, 15, 160, 0.2)',
Expand All @@ -521,7 +521,7 @@ If the aspect ratio of your custom map is not the default `16:9` (`0.5625`), you
borderWidth: 2,
borderOpacity: 1,
borderColor: '#FFFFFF',
popupOnHover: true,
popupOnHover: true, // True to show the popup while hovering
radius: null,
popupTemplate: function(geography, data) { // This function should just return a string
return '<div class="hoverinfo"><strong>' + data.name + '</strong></div>';
Expand All @@ -542,7 +542,7 @@ If the aspect ratio of your custom map is not the default `16:9` (`0.5625`), you
strokeWidth: 1,
arcSharpness: 1,
animationSpeed: 600, // Milliseconds
popupOnHover: false,
popupOnHover: false, // True to show the popup while hovering
popupTemplate: function(geography, data) { // This function should just return a string
// Case with latitude and longitude
if ( ( data.origin && data.destination ) && data.origin.latitude && data.origin.longitude && data.destination.latitude && data.destination.longitude ) {
Expand Down

0 comments on commit f8056f6

Please sign in to comment.