<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Robert,<br>
<br>
Yep, all the things you ask are quite possible but not without
getting your hand a bit dirty :) You can do all that by
programming. Extend the ModifyControl more to make it do what you
want. Don't be afraid to look at the source code to see what the
components do. You'll get more knowledge that way.<br>
<br>
I'd be happy to see the end result. Best of luck to you.<br>
<br>
Kind regards,<br>
<br>
Alexandre<br>
<br>
<br>
<br>
On 13-02-28 12:36 PM, Robert Smart wrote:<br>
</div>
<br>
<blockquote cite="mid:SNT127-DS14390D2D2EFF542465EF14AAFE0@phx.gbl"
type="cite">
<div dir="ltr">
<div style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE:
12pt">
<div>This there a way to define a style for the selected
vertex? </div>
</div>
</div>
</blockquote>
<br>
Sure. Look at the OpenLayers.Layer.Feature drawFeature method,
second argument.<br>
<br>
<br>
<blockquote cite="mid:SNT127-DS14390D2D2EFF542465EF14AAFE0@phx.gbl"
type="cite">
<div dir="ltr">
<div style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE:
12pt">
<div> </div>
<div>Is there a way to store a reference to the selected
vertex in the modify feature control? So that I could allow
a user to select a vertex and then if they choose to delete
it, I can just pull out a reference to it in the code from
the modify feature. I suppose this could also just be a
deleteSeletectedVertex function on the modifyFeature control
too.</div>
</div>
</div>
</blockquote>
<br>
Yep, but you'll need to program that.<br>
<br>
<br>
<blockquote cite="mid:SNT127-DS14390D2D2EFF542465EF14AAFE0@phx.gbl"
type="cite">
<div dir="ltr">
<div style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE:
12pt">
<div> </div>
<div>Is there a way to deselect the the vertex too? So if I
click on it and it changes its style to the ‘selected’
style, I can then click on it again to deselect it?</div>
</div>
</div>
</blockquote>
<br>
If you keep track of the current one selected, yeah you could. This
is also done programmatically.<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>