[Cartoweb-users] Edit plugin.

Nikos Papadakis nipapada at gmail.com
Thu Sep 25 10:38:57 EDT 2008


O/H Oliver Christen έγραψε:
> please remove
>  
> {if $edit_allowed|default:''}<div id="edit_div"
>         style="display:none"></div>{/if}
>  
> from your template header section, it has absolutly nothing to do there
>  
> that should go usualy in the body section, where you want to see the 
> selected elements array appear.
>  
> regards
> Oliver

Thank you.
I placed the above statement where i should and now the plugin works!
But now i have a problem using the tools.
I can select and edit all points that alreadt exhist in the database!
The problem i have is with points that create myself.
I can create them but when i move or delete them i get the following 
error message.

Error [2, array_key_exists() [function.array-key-exists <http://localhost/cartoweb3/htdocs/function.array-key-exists>]: The first argument should be either a string or an integer, C:\ms4w\apps\cartoweb3\projects\mytest\plugins\edit\client\ClientEdit.php, 245]

With the configuration i have,each entry in the database has 7 columns wich are:
gid (integer),v_poi (integer),v_poi_point (integer),city (string),city_lat (string),label(string),the_geom(geometry).
The v_poi field has the same values with the gid field.
The v_poi_point field is always 0 (Strange shapefile source!!!)
In my map file i have choosen to edit only the attributes city,city_lat and label.
I guess that the problem with the points i create is that when they are written in the postgis database
their entries have the field gid filled,the other two fields (v_poi,v_poi_point) are not filled!

If i am right how can i fill them automatically with the proper values.(That is,v_poi equal to gid and v_poi_point=0).

Thank you very much!



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080925/3a4eab59/attachment.html


More information about the Cartoweb-users mailing list