Senaste versionen av Mobile Atlas Creator (1.9.6) kan också fås att fungera med Eniro via sk. BeanShell Maps. Installera Mobile Atlas Creator och skapa filen Eniro_nautical.bsh i katalogen ../mapsources/.. Den ska se ut så här inuti: /**
Eniro Nautic
**/ name = Eniro Nautic (Bean Shell); tileType = png; // required; valid values: jpg png or gif // Default size of each tile is 256x256 pixel
tileSize = 256; // optional
minZoom = 0; // optional
maxZoom = 20; // optional
tileUpdate = TileUpdate.IfModifiedSince; // optional
backgroundColor = #000000; // optional - supported since MOBAC 1.9.1
ignoreError = True; // optional since MOBAC 1.9.4 /**
This method is called for each tile: input parameters for this script: zoom, x and y
**/
String getTileUrl( int zoom, int x, int y ) { int iy = (1 << zoom) - 1 - y;
return http://map.eniro.com/geowebcache/service/tms1.0.0/nautical/'>http://map.eniro.com/geowebcache/service/tms1.0.0/nautical/ zoom / x / iy .png;
} /**
This method is called also for each tile (implementation optional)
It allows to set HTTP headers like Referer or cookies the server
wants to see.
**/
void addHeaders( java.net.HttpURLConnection conn) {
// conn.addRequestProperty(Cookie,test=12345);
// conn.addRequestProperty(Referer,http://www.openstreetmap.org);
} Vill man ha vanliga kartor eller sattelitbilder från eniro så byter man ut tre saker: 1. Filnamn 2. raden: name = Eniro XXXX (Bean Shell); 3. URL return http://map.eniro.com/geowebcache/service/tms1.0.0/map/ zoom / x / iy .png; eller return http://map.eniro.com/geowebcache/service/tms1.0.0/aerial/ zoom / x / iy .png; Sen är det bara att börja bygga kartor och exportera till t.ex oruxmaps på din Android. //M