jxmapviewer2 icon indicating copy to clipboard operation
jxmapviewer2 copied to clipboard

Feature: decorate tile urls with query params

Open mikey75 opened this issue 2 years ago • 1 comments

Some online tile services require api keys or other parameters in the tile url request. Perhaps it would be nice to allow AbstractTileFactory to decorate urls/request with such parameters? It could be doable by passing map of key/value pairs to factory. Of course it is a convenience feature because you can implement it in your factory yourself, but would be nice to have in superclass and just set the parameter map.

I will try and implement it but what do you think?

mikey75 avatar Dec 23 '22 08:12 mikey75

That's an interesting idea. Yeah sure, let's give it a try. Maybe a separate helper class that creates URLs that can be used in a superclass could be useful.

msteiger avatar Dec 28 '22 19:12 msteiger