Created
December 28, 2014 14:27
-
-
Save elzup/94bbd3337904c9759bc6 to your computer and use it in GitHub Desktop.
GoogleMapAPI のヒートマップの色を変える ref: http://qiita.com/elzup/items/5767dde93cec16724a72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var heatmap = new google.maps.visualization.HeatmapLayer({ | |
fillOpacity: 1.1, | |
radius: 50, | |
gradient: ['#fff', '#f00', '#f80', '#8f0', '#0f0', '#0f8', '#08f', '#00f', '#80f', '#f08', 'black'] | |
}); | |
heatmap.setData(point); | |
heatmap.setMap(map); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var heatmap = new google.maps.visualization.HeatmapLayer({ | |
fillOpacity: 1.1, | |
radius: 50, | |
gradient: ['white', '#00f', '#0ff'] | |
}); | |
heatmap.setData(point); | |
heatmap.setMap(map); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment