Return to Snippet

Revision: 64409
at August 6, 2013 02:51 by tymartist


Updated Code
// 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']);
		}
	}
}

Revision: 64408
at August 6, 2013 02:50 by tymartist


Initial Code
// 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']);
		}
	}

Initial URL


Initial Description
* Used to create markers based solely on latitude and longitude
* Replace the existing mainPoints() function in map-functions.js

Initial Title
Google Map Marker Function (alternate, non-geocoding)

Initial Tags
google

Initial Language
JavaScript