Connecting to custom tile server #105
-
Me again, I keep getting into the intricacies of EOmaps. Here I am asking about connecting to custom tile servers. Actually, I managed to set up a private server that serves OpenStreetMap data for my application. I only see instructions to connect to WMS-type providers using GetCapabilites.xml links in docs. My server serves tiles in the following matter:
In the source, ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, Basically you should be able to use If all goes well, that should work: m = Maps(Maps.CRS.GOOGLE_MERCATOR)
service = m.add_wms.get_service("http://myserver.serv/hot/{x}/{y}/{z}.png", service_type="xyz")
service.add_layer.xyz_layer() |
Beta Was this translation helpful? Give feedback.
Hey,
good question... I never tried to use a local server but in theory it should work just as any other server...
(if you have a nice overview on how to setup local tileservers, I'd love to get a look!)
Basically you should be able to use
m.add_wms.get_service
to get a WebMap object for your url and then use it just as any other WebMap service.(check the docs on Using custom webmap services and m.add_wms.get_service )
If all goes well, that should work: