Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to use OpenLayers to edit features of vector data served from a local geoserver. So far, I'm able to pull WMS and WFS layers using OpenLayers from the same geoserver. But now, I'd like enable editing of features of the vector layers. The relevant code section is as shown below:

var ke_admin_vector = new OpenLayers.Layer.Vector("Admin Vector", {
           strategies: [new OpenLayers.Strategy.BBOX(), new OpenLayers.Strategy.Save()],
           protocol: new OpenLayers.Protocol.WFS({
               version: "1.1.0",
               url: "http://HOST_IP:port/geoserver/wfs",
               featureType: "ke_admin",
               featureNS: "pop_explorer",
               srsName: "EPSG:4326"
           })
       });

       var editpanel = new EditingPanel(ke_admin_vector)
       map.addControl(editpanel);

ke_admin is the name of the layer. pop_explorer is the workspace url. EPSG:4326 is the projection of the layer within geoserver.

When I try accessing this from a browser, firebug complains that EditingPanel is not defined. Any suggestions on what I may be doing wrong. Thanks in advance.

ANSWERED.

share|improve this question
    
Sorry guys. I was following the tutorial at workshops.opengeo.org/openlayers-intro/vector/persist.html. As it turns out, the EditingPanel.js, DeleteFeature.js and editing-panel.css referenced in the tutorial are available at svn.opengeo.org/workshops/projects/openlayers/foss4g_2009/src/…. The workshop assumed the learner had downloaded everything. –  okello Jun 13 '12 at 9:57
    
So is that resolved then? In which case stick it in as an answer and mark as answered so anyone else who comes across it may avoid a facepalm moment :) –  Rob Quincey Jun 13 '12 at 10:03
    
Yes, that answers it. How do I mark a question as answered, if you don't mind me asking. –  okello Jun 13 '12 at 10:12
    
You need to post an answer and then mark that as the accepted answer, so just stick your comment into an answer then accept it. Some StackExchangers might say that's not the right thing to do but I think it helps people find the answers quicker if they see that a question has an accepted answer, even if it is your own. –  Rob Quincey Jun 13 '12 at 14:07
1  
Thanks for that clarification, Rob. –  okello Jun 13 '12 at 16:19
add comment

1 Answer 1

up vote 2 down vote accepted

I was following the tutorial at workshops.opengeo.org/openlayers-intro/vector/persist.html. As it turns out, the EditingPanel.js, DeleteFeature.js and editing-panel.css referenced in the tutorial are available at http://svn.opengeo.org/workshops/projects/openlayers/foss4g_2009/src/extras/. The workshop assumed the learner had downloaded everything.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.