NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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...

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

permanent link

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×535
×1
×1

question asked: 30 Jul '13, 17:19

question was seen: 1,868 times

last updated: 30 Jul '13, 20:14

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum