0

I'm using OpenLayers 2.13, GeoServer 2.3.5 for development.

I have a GeoWebCache layer as base layer and one vector layer for showing route (please check the attached image).

If I drag or zoom in to any part of that route layer map tile is hiding rest of the vector layer part.

Please guide me to show all my vector layer in all zoom level.

enter image description here

  • 1
    what is providing the vector layer? could it be that it isn't redrawing? – Ian Turton Sep 26 '14 at 11:07
  • Dear iant, thank you for your response... my vector layer having polyline features. all the data i'm fetching from database and i got the result like i have showed in image 1. But, after that if i do any drag or zoom in map then map tiles are hiding my results. That is my problem.. – Ramesh T R Sep 26 '14 at 11:09
  • 1
    did you redraw the vector layer? – Ian Turton Sep 26 '14 at 11:37
  • Dear iant, Yes.. I have missed that option. :) Thank you for the answer.. map.getLayersByName(vectorlayerName)[0].redraw(); Please post the answer. – Ramesh T R Sep 26 '14 at 12:42
1

After loading all the datas in vector layer we have to redraw vector layer. map.getLayersByName(vectorlayerName)[0].redraw();

Thank you @iant. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.