[pgrouting-users] openlayers move startpoint

Daniel Kastl daniel.kastl at georepublic.de
Tue Nov 17 18:36:51 EST 2009


Did you follow the example of the 2007 workshop or this one?
http://pgrouting.postlbs.org/wiki/WorkshopOL2.7andOSM

Because the 2007 workshop uses a quite ancient version of OpenLayers and
users reported problems. That's why Kai wrote an updated tutorial (see link
above).

Daniel




2009/11/18 Mehmet Sirin <m.sirin07 at googlemail.com>

> hi, i'm using your pgrouting and now tried to move the startpoint to a
> position i assign to the start marker:
>
>
> ...
>
>
>    function compute() {
>             var startPoint = start.features[0];
>             var stopPoint = stop.features[0];
>
>
>
> startPoint.geometry.x=x_pos;   //x_pos and y_pos are  dynamically taken values from database.
>
> startPoint.geometry.y=y_pos;
>
>             if (startPoint && stopPoint) {
>
> ...
>
>
> works, the marker moves to the given coordinates, but when zooming into the map the marker disappears.just see that thing with some zoom levels. dunno why...
>
>
>
> i would be very thankful if you could give me a hint
>
> kind regards
>
> m.sirin
>
>
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.postlbs.org
> http://lists.postlbs.org/mailman/listinfo/pgrouting-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20091118/59e9c112/attachment.html


More information about the Pgrouting-users mailing list