PDA

View Full Version : Problem with layer



jcmag
11-28-2008, 07:17 AM
I display some pins on a map:
http://img206.imageshack.us/img206/7051/mapve1ht2.th.png (http://img206.imageshack.us/my.php?image=mapve1ht2.png)

but when I move the map and zoom out, the pins also move:
http://img386.imageshack.us/img386/1849/mapve2bu7.th.png (http://img386.imageshack.us/my.php?image=mapve2bu7.png)


any idea about the problem?

jcmag
11-28-2008, 07:29 AM
I've found that this problem is related to my div' style:

<div style="overflow: hidden; width: 100%; height: 100%;" id="myMap"></div>

-> doesn't work

<div style="overflow: hidden; width: 400px; height: 300px;" id="myMap"></div>
-> works fine

How could I display the map in "full screen" (my map is hosted in a Winform usercontrol, when the user resizes the form I want the map to grow or shrink)