Hello Simon,
Don't know about Folium, but for raw Leaflet you don't need to provide
the whole url. If you use WMS, the library will take care of
constructing the url for you. You need to provide the base-url
"http://localhost:8080/geoserver/<workspace-name-here>/wms?", the layers
parameter (comma separated string with the layer names), and the format
("image/png" for example). For TMS, I don't know the exact syntax, but
you need to set the "tms" parameter to true (Maybe you are missing that?).
Bingen Galartza Iparragirre
21/7/27 14:04(e)an, Simon Crown igorleak idatzi zuen:
I have experience using GeoServer with OpenLayers but for this project
I need tight Python integration so I am trying the Folium package
which is a wrapper around Leaflet.js which I am not familiar with.
My problem is how to provide a correct URL for GeoServer so it
replaces the default Leaflet tileset (which comes from OpenLayers)
with a tileset coming from a locally installed GeoServer.
I have tried the following (The layer has the very original name of
TEST:TEST
http://localhost:8080/geoserver/tms/1.0.0/TEST:TEST@png/{z}/{x}/{y}.png
<http://localhost:8080/geoserver/tms/1.0.0/TEST:TEST@png/{z}/{x}/{y}.png>
http://localhost:8080/geoserver/rest/tms/1.0.0/TEST:TEST@png/{z}/{x}/{y}.png
<http://localhost:8080/geoserver/rest/tms/1.0.0/TEST:TEST@png/{z}/{x}/{y}.png>
I have also tried wms instead of tms but nothing seems to work.
Obviously I am missing something obvious but maybe some kind soul can
point it out to.me <http://to.me>
Simon Crown
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
*BINGEN GALARTZA IPARRAGIRRE*
magnet.coop
Santa Marina 3, Oñati (20560)
i...@magnet.coop
*www.magnet.coop*
/This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
communication in error, please notify the sender immediately and delete
it. If you are not the intended recipient, you are expressly prohibited
from reading, copying, distributing, disseminating or, in any other way,
using any of the information without the Magnet consent. Please note
that Internet e-mail guarantees neither the confidentiality nor the
proper receipt of the message sent, so that Magnet shall not be liable
for any damages caused. As its integrity cannot be secured on the
Internet, the Magnet liability cannot be triggered for the message
content. Although the sender endeavors to maintain a computer virus-free
network, the sender does not warrant that this transmission is
virus-free and will not be liable for any damages resulting from any
virus transmitted./
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users