Skip to content

Connecting to custom tile server #105

Answered by raphaelquast
domagojhack asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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()

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@domagojhack
Comment options

@raphaelquast
Comment options

Answer selected by domagojhack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants