<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<font size="-1"><font face="Verdana">Alright. I'll check it. What I'd
like to know is if in your opinion it is the right way to do this. Or
is better to place a marker? I suppose that with the marker the problem
would be inverse, to pass the coords.<br>
<br>
Which is for you the cleanest way to inform the suer he chosen that
point?<br>
<br>
Thanks<br>
Andrea Maschio<br>
</font></font><br>
ibarkley ha scritto:
<blockquote cite="mid:15289908.post@talk.nabble.com" type="cite">
  <pre wrap="">In the feature class there exists a 'geometry' class that contains a
LineString: pretty much [x1,y1,x2,y2,],[]..]; the start,end for each vertex
on the feature. these coordinates are in whatever coordinate system the base
layer is in, but you can use the map object and 'getViewPortPxFromLonLat()'
or something similar to construct a Pixel object....
-Ian

superandrew wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi I was trying to :

1) selecting a feature

2) draw a point where i selected this feature

for 1) i do somewhat like this:

map.events.register('click', map, function (e) {

//build a Pixel using e.xy.x and y

//selection through ajax of my wfs feature

}

now, if i want to add a feature, i must add

        drawPoint.featureAdded = function(feature) {
        //feature is the geometry
}

What i don't understand is how to get from 'feature' the coordinates  
to build the Pixel object. In the documentation I saw there's a  
property, 'lastDown' who returns a pixel, but logging this properties  
I always get 'undefined'.

Anyone could help me?

Thanks

Andrea Maschio
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.superandrew.it">http://www.superandrew.it</a>

_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>


-----
--

<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.superandrew.it">http://www.superandrew.it</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>