name = "IGN Geoportail maps"; tileType = "jpg"; tileSize = 256; minZoom = 0; maxZoom = 18; tileUpdate = TileUpdate.IfModifiedSince; backgroundColor = "#ffffff"; ignoreError = "True"; String getTileUrl( int zoom, int x, int y ) { return "http://gpp3-wxs.ign.fr/6usqvehthxi0ck95g2s9sc36/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&STYLE=normal&FORMAT=image/jpeg&TILEMATRIXSET=PM&TILEMATRIX=" + zoom + "&TILEROW=" + y + "&TILECOL=" + x + ".jpg"; } void addHeaders( java.net.HttpURLConnection conn) { conn.addRequestProperty("Referer","http://m.geoportail.fr/index.html"); }