/ Published in: JavaScript

* Used to create markers based solely on latitude and longitude
* Replace the existing mainPoints() function in map-functions.js
* Replace the existing mainPoints() function in map-functions.js
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// A function that will load the main map points when called function mainPoints(){ // pointData function exists in HTML for population and data re-use purposes pointData(); searchMap(); for (var j = 0; j < points.length; j++) { if(points[j]['active']=='true'){ createMarker(points[j]['name'],points[j]['address'],points[j]['citystate'],points[j]['lat'],points[j]['lng'],points[j]['query']); } } }
Comments
