This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Is it possible to dynamically resize a khtml.maplib map?

0

Hello, I think this should be so easy but I cannot find the information anywhere.

I am using khtml.maplib. I need to change dynamically the size of the map, I changed the size of the container DIV but the maps keeps the same size as before. I would need something like map.updateMap() or something similar.

Thanks in advance, Regards Jorge

asked 30 Jul '13, 17:19

Jordelca's gravatar image

Jordelca
1111
accept rate: 0%

edited 30 Jul '13, 19:02

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

2

Can you tell us which map display library you're using?

(30 Jul '13, 17:28) Jonathan Ben...

One Answer:

0

yes, I was using khtml.maplib. I just changed to openlayers and it worked! Why are there so many libraries (I am so used to use google maps). Which one s better? Thanks Jorge

answered 30 Jul '13, 18:41

Jordelca's gravatar image

Jordelca
1111
accept rate: 0%

1

YOU have to decide for your special purpose what lib is better.

If you are testing, also consider http://leafletjs.com

(30 Jul '13, 20:13) stephan75

Source code available on GitHub .