current location: Home > download site > Library download > Other libraries > Baidu map heat map PHP class library
Baidu map heat map PHP class library
Classify: Library download / Other libraries | Release time: 2018-01-09 | visits: 3290 |
Download: 112 |
Latest Downloads
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
The most powerful brain 3
Odd Dust: Damila
Young Journey to the West 2
24 HoursReading Leaderboard
- 1 How to Populate an HTML Dropdown List with Data from a MySQL Database?
- 2 dvwssr.dll - What is dvwssr.dll?
- 3 How to Concatenate C Strings on a Single Line?
- 4 How Can We Handle Idle MySQL Connections?
- 5 How to Handle Authentication Cookies for HTTP Requests in Go?
- 6 What is cloud mining?
- 7 How to Troubleshoot "Can't Connect to MySQL Server" Errors When Connecting Remotely via Command Line? .
- 8 Why Can't I Update a Table Inside a Trigger That's Modifying the Same Table in MySQL?
- 9 How to Extract Multi-Line Text from HTML with JavaScript Regex?
- 10 Python Functions and Modules: Writing Reusable Code Like a Pro
- 11 Block Mayhem codes for November 2024
- 12 How Can C Programmers Develop Powerful Browser Plugins with NPAPI?
- 13 How can I run my Go application with administrator privileges without manual UAC elevation?
- 14 Can I Use XPath with BeautifulSoup?
- 15 How to Convert Integers to Strings in PHP: Which Method Is Best?
Latest Tutorials
-
- Go language practical GraphQL
- 1993 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3410 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1797 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2611 2024-03-29
(function(w){ // the heatmapFactory creates heatmap instances var heatmapFactory = (function(){ // store object constructor // a heatmap contains a store // the store has to know about the heatmap in order to trigger heatmap updates when datapoints get added var store = function store(hmap){ var _ = { // data is a two dimensional array // a datapoint gets saved as data[point-x-value][point-y-value] // the value at [point-x-value][point-y-value] is the occurrence of the datapoint data: [], // tight coupling of the heatmap object heatmap: hmap }; // the max occurrence - the heatmaps radial gradient alpha transition is based on it this.max = 1; this.get = function(key){ return _[key]; }; this.set = function(key, value){ _[key] = value; }; }
Set the detailed data displayed by the heat map. After implementation, it can be displayed immediately
@param {Json Object} data
{"<b>max</b>" : {Number} Maximum value of weight,
<br />"<b>data</b>" : {Array} Coordinate detailed data, the format is as follows<br/>
{"lng":116.421969,"lat":39.913527,"count":3}, where<br/>
lng lat is the longitude and latitude respectively, count weight value
Add detailed coordinate points of the power map
@param {Number} lng longitude coordinate
@param {Number} lat longitude coordinate
@param {Number} count longitude coordinate