tombatossals/angular-openlayers-directive

Https protocol option for Esri layer

Closed this issue · 3 comments

Would be nice to be able to activate https on Esri layers.

My use case:
My app is in https so when I display an Esri layer I have these errors
Mixed Content: The page at 'https://myapp.ovh/#/map' was loaded over HTTPS, but requested an insecure image 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/11/1153/1967'. This content should also be served over HTTPS.

@mfilotto Hey, definitely. Would you like to submit a pull request? The code line to change would be this one:

var _urlBase = 'http://services.arcgisonline.com/ArcGIS/rest/services/';

Of course.
Do you want me to hard code https url or add an option to switch between http and hhtps ?

I think we can hard-code it. Calling an https resource from an http site doesn't hurt, vice versa however you get the error you got 😄 . so I think we're fine hard-coding it for now. In case we can add configuration options later if needed.

thx 👍