// Update the radius when the user makes a selection.
google.maps.event.addDomListener(document.getElementById('radius'),
'change', function() {
var meters = parseInt(this.value, 10);
layer.setOptions({
query: {
select: locationColumn,
from: tableId,
where: 'ST_INTERSECTS(Latitude, ' +
'CIRCLE(LATLNG(53.337638, -6.266971), ' + meters + '))'
}
});
circle.setRadius(meters);
//alert(position);
//circle.setCenter(new google.maps.LatLng(position));
});
(53.337638, -6.266971) を可変の「位置」に変更したいのですが、位置の値の型は (x,y) と同じですが、「ST_INTERSECTS(Latitude, ' + 'CIRCLE」) では機能しません。 (LATLNG('+position+'), ' + メートル + '))' コードを変更するにはどうすればよいですか?