Is there a property or a built in way to display nodes, vertices , for all features on an InmemoryLayer?
Display nodes on InmemoryLayer
Hi Peter,
You will need to add an additional layer with PointShapes, that you can populate when creating the polygons in your first InmemoryLayer, as you will have the vertices handy at this time.
Is there an example of this out on the Wiki or can you provide an example?
Take a look in the fist code block (Yale's) on this post: gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/39/aft/7868/afv/topic/Default.aspx
Hi Peter,
I think Carlos’s reply just solve your problem. Thanks Carlos!
Regards,
Don
Looks like it. I’ll have to adjust the code slightly for polygons but not a big deal. Thanks.
Peter,
You’re welcome, please let us know if you have any question.
Regards,
Don
I kind of want to keep the node points and the actual shape on seperate layers to make it simple to display and hide the nodes and to keep the spatial queries more straight forward. One shape type per layer. I was able to accomplish this but the only problem is if I have two polygons on the same layer that overlap, I see the related nodes of the bottom polygon that overlaps with the top polygon when it should be hidden. I attached a picture of what I'm talking about. If I add the points to the same layer as the polygon, there isn't a problem except sometimes the points are on top of the polygon boundary and some are underneath. Is there some query or some way to get the featureIds of points that are related to verticies that are underneath other polygons on the same layer? If not, Is there some point style or custom style that will draw the points on top of a given feature boundary instead underneath? I included screen shots of what I'm talking about.
Peter,
I just want to be really clear here… You want the effect of top image where all of the blue rectangle always draw on top of the green rectangles right?
David