darnton / LeafletBlazor

Blazor component for interop with Leaflet slippy map library.
30 stars 20 forks source link

Map not rendering with css #13

Closed mrunks closed 3 years ago

mrunks commented 3 years ago

I am using a Web Assembly with hosted project and when trying copy the example, I noticed that when I try to set the reference to leaflet.css in index.html that the page is blank with no map rendering. If I take it out then parts of the map start to render. Any suggestions what would be causing this ? There are no errors showing up on the console.

bryanrcarlson commented 3 years ago

Double check that the div containing the map has a height property defined. It's been a few months since I played around with the example, but I think I ran into a similar issue.

mrunks commented 3 years ago

Thanks for some reason its not reading the #testMap style. But if I make a new class such as .mapDisplay in the same css file and reference it in the class attribute it works.