[pgrouting-users] openlayers move startpoint

Mehmet Sirin m.sirin07 at googlemail.com
Wed Nov 18 04:27:34 EST 2009


Hi, I used the updated one from Kai B.

.. I'll try to delete all features from the layer, then add one with updated
coordinates. maybe it'll work


bye

2009/11/18 Daniel Kastl <daniel.kastl at georepublic.de>

> 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
>>
>>
>
> _______________________________________________
> 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/ee95a8ee/attachment.html


More information about the Pgrouting-users mailing list