Skip to content

Instantly share code, notes, and snippets.

View zor's full-sized avatar

Senyo Gault-Williams zor

View GitHub Profile
drawLandmarks: function() {
var parent = this;
for (var i = 0, landmark; landmark = this.landmarkData[i]; i++) {
if(landmark.type == "circle") {
var shape = this.drawCircle(landmark);
} else {
var shape = this.drawPolygon(landmark);
var shapeMarker = new google.maps.Marker({
position: this.getPolygonCenter(landmark),
title: landmark.name,
$( "#person-lookup" ).autocomplete({
source: autoCompletePeople,
select: function( e, ui ) {
console.debug('set the field to ', ui.item.label);
$('input#person-lookup').val(ui.item.label);
$('input#person-to-add').val(ui.item.value);
}
});