Skip to content

Instantly share code, notes, and snippets.

@sjonesyodle
Created September 3, 2013 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjonesyodle/6430037 to your computer and use it in GitHub Desktop.
Save sjonesyodle/6430037 to your computer and use it in GitHub Desktop.
ydlmaps config
YDLMAPS({
use : [
"TERRITORY", // (required), options -> RADIUS or TERRITORY
"INFO_WINDOWS",
"TOTAL_LOCS",
"LIST_VIEW",
"SEARCH",
"CANVAS",
"TMPL"
],
config : {
"mapCanvas" : {
mapNode : ".mapCanvas"
},
"mapConfig" : {
mapType : "ROADMAP",
lat : 48.438376,
lng : -123.415711,
zoom : 8
},
"radius" : {
distance : 30 // miles
},
"territory" : {
redirectOnSuccess : true,
zip : false,
postal : true,
FSA_Postal : true
},
"locData" : {
file : "locations.xml"
},
"locListView" : {
tmplNodeId : "locationList",
listRootNode : "#locationList"
},
"userSearch" : {
inputNode : ".searchInput",
searchNode : ".searchBtn",
placeHolder : "Enter Postal Code",
errColor : "#FF0000",
errClass : "error"
},
"infoWindows" : {
tmplNodeId : "infoWindows",
mouseEvent : "click"
},
"markerStyles" : {
userType : "hex", // hex or img
userHexBG : "666666",
userImgSrc : "",
locsType : "hex",
locsHexBG : "FF7B0D",
locsHexTxt : "FFFFFF",
locsImgSrc : "",
locsSortAlpha : false,
locsSortNum : true
},
"locCounter" : {
absNode : ".totalLocs_abs",
relNode : ".totalLocs_rel",
pluralLocs: ".totalLocs_tense"
},
"templates" : {
file : "templates.html"
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment