Why not ask your question on the new OpenStreetMap Community Forum?

My site uses OSM to display a town border with layers to represent differing entities on the map. Everything work great on my local WAMP system but not on the main server. This is the URL for the problem page... MSHolmes Town Article.

There are no errors thrown in the console. Any clues as to the solution of the problem are greatly appreciated.


asked 11 Dec '22, 02:30

jdadwilson's gravatar image

accept rate: 0%

Without the source code of the site I suspect that anyone would be guessing.

This seems to be related to this forum thread.

(11 Dec '22, 03:32) SomeoneElse ♦

You need to give your Leaflet (map) div a height.

This is the map_canvas_xl element. At present it doesn't have a height set on it so the map won't display.

If you use CSS to assign it (for example) height: 500px then the map shows up.

permanent link

answered 12 Dec '22, 08:59

Richard's gravatar image

Richard ♦
accept rate: 18%

Thanks... now working.

(12 Dec '22, 17:02) jdadwilson
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 11 Dec '22, 02:30

question was seen: 751 times

last updated: 12 Dec '22, 17:03

powered by OSQA