function addNoteLayer(map, notesUrl, newNoteControls, newNoteForm, minZoom) {
var newNotes;
- var noteCallback = function (scope, response) {
- for (var f = 0; f < response.features.length; f++) {
- var feature = response.features[f];
- }
- };
-
var saveNewNotes = function (o) {
var layer = o.object;
newNotes = layer.getFeaturesByAttribute("status", "new")
],
protocol: new OpenLayers.Protocol.HTTP({
url: notesUrl,
- format: new OpenLayers.Format.GeoJSON(),
- callback: noteCallback
+ format: new OpenLayers.Format.GeoJSON()
})
});