Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maps from SVG is not working anymore #6654

Closed
ricardborras opened this issue Apr 27, 2017 · 6 comments
Closed

Maps from SVG is not working anymore #6654

ricardborras opened this issue Apr 27, 2017 · 6 comments

Comments

@ricardborras
Copy link

Expected behaviour

Page https://www.highcharts.com/studies/map-from-svg.htm should allow to load SVGs and convert to JSON

Actual behaviour

On loading, page shows several javascript errors and does not work (no preset loading, no custom map conversion). Errors are:

map-from-svg.htm:1 Mixed Content: The page at 'https://www.highcharts.com/studies/map-from-svg.htm' was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/jquery-1.10.1.js'. This request has been blocked; the content must be served over HTTPS.
map-from-svg.htm:1 Mixed Content: The page at 'https://www.highcharts.com/studies/map-from-svg.htm' was loaded over HTTPS, but requested an insecure script 'http://code.highcharts.com/maps/1.0.4/highmaps.js'. This request has been blocked; the content must be served over HTTPS.
map-from-svg.htm:1 Mixed Content: The page at 'https://www.highcharts.com/studies/map-from-svg.htm' was loaded over HTTPS, but requested an insecure script 'http://github.highcharts.com/82c192d73/modules/data.src.js'. This request has been blocked; the content must be served over HTTPS.
map-from-svg.htm:1 Mixed Content: The page at 'https://www.highcharts.com/studies/map-from-svg.htm' was loaded over HTTPS, but requested an insecure script 'http://github.highcharts.com/82c192d73/modules/map-parser.src.js'. This request has been blocked; the content must be served over HTTPS.
map-from-svg.js:70 Uncaught ReferenceError: $ is not defined(anonymous function) @ map-from-svg.js:70

Live demo with steps to reproduce

Affected browser(s)

Chrome, Firefox

@TorsteinHonsi
Copy link
Collaborator

Thanks for reporting! Fixed by be8284c. We will update the web server accordingly.

@Denyllon
Copy link
Contributor

Denyllon commented Apr 27, 2020

@TorsteinHonsi The problem appeared again.
We can see that after opening the Map from SVG converter, it does not work at all, and there are errors 404 in the console.
I see that our GitHub's CDN have problems to find references to the 82c192d73 commit put in the links.

<script src="https://github.highcharts.com/82c192d73/modules/data.src.js"></script>
<script src="https://github.highcharts.com/82c192d73/modules/map-parser.src.js"></script>

@Denyllon Denyllon reopened this Apr 27, 2020
@TorsteinHonsi
Copy link
Collaborator

Thanks. This tool is quite hard to maintain, as it resides in the main highcharts repo and is uploaded to the website. I think we should host it in a different way. Probably the best option would be to use a separate repo and serve it in github pages. I'll have a look at it.

@TorsteinHonsi
Copy link
Collaborator

It's now moved to https://highcharts.github.io/map-from-svg

@Basts
Copy link
Contributor

Basts commented May 4, 2020

@TorsteinHonsi

Is it the official link now? Could be share in the documentation?

https://www.highcharts.com/docs/maps/create-custom-maps-for-highmaps - subpoint number 13

@TorsteinHonsi
Copy link
Collaborator

Yes. I have created a redirect from that page, but it is not active until the next release. But it is better to update the actual docs too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants