Vector Layer is shifting when ScrollBar is used

1/26/2013 9:08:44 AM
Total Posts 3

Vector Layer is shifting when ScrollBar is used

I am using a background Layer(Bing Maps) and a vector layer (PostGIS).

If in any computer with a small resolution and browser has scrolbars,

when you are using mouse wheel for zooming, vector layer moves over background layer.

How can i prevent this.

 

You can check this situation 

http://www.tubis.info

 

1/28/2013 4:02:04 AM
MVP
Total Posts 323

Re: Vector Layer is shifting when ScrollBar is used

The Map conrol is enclosed into a fixed DIV tag in your .aspx file:

<div id="midcon" style="position: fixed; top: 112px; left: 332px; bottom: 20px; right: 0px">

This is why the Map control with vector layers retains its position when the page is scrolled (the Bing layer resides outside the Map control and it follows the scrollbar).

1/29/2013 9:08:10 AM
Total Posts 3

Re: Vector Layer is shifting when ScrollBar is used

Thank you.

How about docking ?

Is it possible that AspMap Control fills all the client area ? (div etc.)

1/29/2013 10:09:12 AM
MVP
Total Posts 323

Re: Vector Layer is shifting when ScrollBar is used

Please check this post http://vdstech.com/Forums/Thread.aspx?pageid=34&mid=13&ItemID=1&thread=45