Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precache & zoom #207

Open
octavianiLocator opened this issue Oct 27, 2016 · 0 comments
Open

Precache & zoom #207

octavianiLocator opened this issue Oct 27, 2016 · 0 comments

Comments

@octavianiLocator
Copy link

Hi guys,

Setting the precaching feature as described by you guys does start the process, but I notice that only 3 tiles are downloaded and then the process stops for some reason. Manually visiting the area does download more tiles.

Aside from that, the app also seems to stop downloading tiles after some zoom level. I can see the difference when comparing to a web-app which uses OpenLayers.

levelTileCondition = new LevelTileCondition(0, 30);
requiredSector = new Sector(
             new Geodetic2D(Angle.fromDegrees(56.2954), Angle.fromDegrees(10.6052)), 
             new Geodetic2D(Angle.fromDegrees(56.3116), Angle.fromDegrees(
aarhusLayer = new WMSLayer("Pyramid", new URL("http://..../ows?", false),
                WMSServerVersion.WMS_1_3_0, requiredSector, "image/png",
                "EPSG:4326", "", true,
                levelTileCondition,
                TimeInterval.fromDays(30), true);
...
g3mWidget = builder.createWidget();

CustomTileVisitorListener myTileVisitorListener = new CustomTileVisitorListener();
final TileVisitorCache_Android tvc = new TileVisitorCache_Android(g3mWidget.getG3MContext(), myTileVisitorListener);

g3mWidget.getG3MWidget().getPlanetRenderer().acceptTileVisitor(tvc,
                requiredSector,
                0, 30);

Please check the below two images to notice the difference between max zoom level in app vs. OpenLayers in web-app. Note that the tile size on the server is 256x256.

Android app: [ http://s17.postimg.org/bat6u0igf/aar_airplane_app.png]
Web app: [http://s16.postimg.org/65dbrv88l/aar_airplane_website.png]

Why is this happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant