I managed with this!! It is working now!

I changed the layers included in the map in init function. I had:

map.addLayers([gmap,layer1,layer2,layer3,start,stop,result,edge_results])

I changed it to

map.addLayers([gmap,layer1,layer2,layer3])

I removed my routing layers. Then in function toggleControl() I add line

map.addLayers([start,stop,result,edge_results]);

That is all :)


-- 
View this message in context: 
http://n2.nabble.com/Problem-with-controls-on-map-%28SelectFeature%2C-Drawfeature%29---OpenLayers%2C-pgRouting-tp2777336p2784629.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to