Coder Social home page Coder Social logo

Comments (2)

asmaloney avatar asmaloney commented on May 23, 2024
  1. The map example works fine for me locally and the ones I use "live" work as well.
  2. Your browser's console should tell you if something is blocking assets like the JavaScript files or if there are other errors.
  3. When you open the index.html file locally instead of trying it from a server what do you see?

from leaflet_example.

Fiddlewood avatar Fiddlewood commented on May 23, 2024
  1. The map example works fine for me locally and the ones I use "live" work as well.
  2. Your browser's console should tell you if something is blocking assets like the JavaScript files or if there are other errors.
  1. When you open the index.html file locally instead of trying it from a server what do you see?

1.: It works locally perfect
2.: I will check this
3.: Everything works fine.
On gitpages, the map loads, the marker not, on my other webspace, the map and markers didnt load.

Error log:

Mixed Content: The page at 'https://xxx.de/zero/' was loaded over HTTPS, but requested an insecure script 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js'. This request has been blocked; the content must be served over HTTPS.

xxx.de/:1 Refused to execute script from 'https://xxx.de/zero/maps/markers.json' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
leaf.js:12

Uncaught ReferenceError: jQuery is not defined
at leaf.js:12

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure image ''. This content should also be served over HTTPS.


Fixed some with changing http:// to https:// in index and leat.js
But some are still there.

Refused to execute script from 'https://xxx.de/zero/maps/markers.json' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
leaf.js:22

Uncaught ReferenceError: markers is not defined
at leaf.js:22

The last error link to

for ( var i=0; i < markers.length; ++i )


Edit again:
Fixed another one in index.html
application/json is the mime for the markers.json nowadays.

Still have the markers problem and the titles didnt load over https, no matter if I changed it to https or not.


The titles load normaly now. Thanks to browsercache >.>
Still one error left.

from leaflet_example.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.