Shape Toolbox - making programatically created shapes editable

Jul 12, 2012 at 10:58 AM

Hello everybody! 

I am using the Shape Toolbox to let a user draw shapes. The shapes are then sent off to a web server to be saved. When the user re-loads the page, I want the shapes to reappear, and be editable.

I know I can draw shapes on the map using the bing map API, however I also need them to be editable and am struggling.

I have tried digging into the souce code for the shape toolbox module and mimicking what goes on when the user creates a shape but have had no success. 

Can anybody give me a hand or point me in the right direction?


Jul 24, 2012 at 7:58 AM

It should be noted that the rectangle and the circle classes will be turned into polygons by the WKT writer. What you can do is store the shape type info and additional properties such as radius for the circle case.

As for making shapes edittable at a later date. I'll take a look at adding a method that you can use to pass in a shape to make it edittable.

Jul 23, 2013 at 3:26 AM
Hey guys, did anything ever come of this; for I'm in the same boat as the OP? Thanks Dyr