performant-software / Neatline

A lightweight framework for building interactive maps and publishing them on the web.
www.neatline.org
Other
105 stars 34 forks source link

WMS layers are not loading #494

Closed shrouta closed 3 years ago

shrouta commented 3 years ago

It looks like WMS layers aren't loading - and producing a "Failed to load resource: net::ERR_CONNECTION_TIMED_OUT" error. This looks to be true across different wms servers (mapwarper, nypl and self-hosted)

eam5 commented 3 years ago

Hi shrouta,

I'm having trouble replicating this issue. What version of Omeka Classic and Neatline are you currently using? Is it possible to share the particular WMS layer you're trying to get working, and I can see if it loads on my end?

Thanks, Elizabeth

eam5 commented 3 years ago

Looking into this issue further, there is a possible chance your WMS layers are not loading due to browser changes in policy regarding mixed content - ie loading unsecure http:// resources on a https:// site. (See here for chrome). This means a WMS address using http:// will automatically update to https://. If the resource does not match, then it will not load. One way to test this in Chrome is to include your WMS resources to your Neatline exhibit as usual, then click on the lock icon to the right of the site url:

Screen Shot 2020-10-27 at 11 51 24 AM

Click on Site Settings, and from there, scroll until you find "Insecure Content" in the list. It likely is set to Block(default). Change the setting to "Allow":

Screen Shot 2020-10-27 at 11 50 40 AM

In your Neatline editor, refresh the page to update the settings, and see if the WMS map layer loads. If it does, then the browser is blocking the http:// content by default. You should reset the Chrome setting back to Block after testing, for security reasons. I can consult Neatline developers further on this, but it may mean that your resources will need to use secure https.

shrouta commented 3 years ago

Elizabeth, Thanks for this recommendation. I’ll give it a try!

AHS

On Oct 27, 2020, at 11:22 AM, eam5 notifications@github.com wrote:

Hi shrouta,

I'm having trouble replicating this issue. What version of Omeka Classic and Neatline are you currently using? Is it possible to share the particular WMS layer you're trying to get working, and I can see if it loads on my end?

Thanks, Elizabeth

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scholarslab/Neatline/issues/494#issuecomment-717319206, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4LNSZKZJTYD66QIJ57YN3SM3QTFANCNFSM4S6UQYYA.