leaflet-extras / leaflet-map

Leaflet map as web component
https://leaflet-extras.github.io/leaflet-map
116 stars 72 forks source link

stock and custom marker icons not rendering on Windows Server 2008R2 #55

Open JasonFitz opened 8 years ago

JasonFitz commented 8 years ago

I have a map using both stock and custom icons (SVGs), that work well on our local machines (on both Firefox and Chrome) but are not visible when served from Windows Server 2008r2. All other SVGs work on the server on this site and others. I can see the SVGs and stock PNGs in my browser if I navigate to them directly, and I can view them on the server directly in IE. I have explicitly set the path to the image folder in our map element. We are still seeing only broken images icons when viewing the app from our servers. Chrome's developer console returns 'text/html' fir the PNGs and SVGs we are using. I tried replacing our custom marker icons with stock markers, and these are also not visible from the server.

fromlocalmachine fromwindowsserver

JasonFitz commented 8 years ago

I was able to fix the issue by adding the ful URL to the server for each icon, beginning with "http://sitename.com/folder...icon.svg". This works but clearly is not ideal.