Checking out if you get some error using some web development tool (like firebug). If you are getting a blocked mixed content
error (usually I got this) then it is very simple to solve. Have a look at this link. Basically you should remove the protocol (http
) from the source link for jquery and leaflet by editing your index.html
file:
from
<script src="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.2/leaflet.js"></script>
to
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.2/leaflet.js"></script>
EDIT:
I would clarify my answer here as I just re-tried it and I can give you one more hint in order to get it working. In general you will have to replace relative path to source file with the links that you generate by google drive. Qgis2leaf plugin puts in *.css
or *.js
folders some file for stylesheet and javascript source and you will have to reference them in the same way how you do for the index.html
file by sharing and associating them the own ID in the URL. Here is a small sample of my code:
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.2/leaflet.css" />
<!-- was href="css/MarkerCluster.css" -->
<link rel="stylesheet" href="https://dce1fbfb4e8600676b0f63db33401bd643722ba2-www.googledrive.com/host/0B7r_uOlr1SKVcUlfYnl1OEpKNUU" />
<!-- was href="css/MarkerCluster.Default.css" -->
<link rel="stylesheet" href="https://b833ff9da91a00091c3e7dd4510603f6bf3dc568-www.googledrive.com/host/0B7r_uOlr1SKVS3N1dXl5dDdSbkE" />
<!-- was href="css/own_style.css" -->
<link rel="stylesheet" type="text/css" href="https://b82437748148c39cf3e4fc58dbdaba49aa9581e7-www.googledrive.com/host/0B7r_uOlr1SKVSk5hcVdLUFJUNTQ">
You can take a look at the source in my example to see how I did it. It is not straightforward but it works.