Remove redundant code
This commit is contained in:
parent
1f06652075
commit
90fe21a04a
1 changed files with 1 additions and 8 deletions
|
@ -1,12 +1,6 @@
|
||||||
function addNoteLayer(map, notesUrl, newNoteControls, newNoteForm, minZoom) {
|
function addNoteLayer(map, notesUrl, newNoteControls, newNoteForm, minZoom) {
|
||||||
var newNotes;
|
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 saveNewNotes = function (o) {
|
||||||
var layer = o.object;
|
var layer = o.object;
|
||||||
newNotes = layer.getFeaturesByAttribute("status", "new")
|
newNotes = layer.getFeaturesByAttribute("status", "new")
|
||||||
|
@ -167,8 +161,7 @@ function addNoteLayer(map, notesUrl, newNoteControls, newNoteForm, minZoom) {
|
||||||
],
|
],
|
||||||
protocol: new OpenLayers.Protocol.HTTP({
|
protocol: new OpenLayers.Protocol.HTTP({
|
||||||
url: notesUrl,
|
url: notesUrl,
|
||||||
format: new OpenLayers.Format.GeoJSON(),
|
format: new OpenLayers.Format.GeoJSON()
|
||||||
callback: noteCallback
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue