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

extent in TMSSource seem not work #1079

Open
liujingjie opened this issue Mar 14, 2019 · 1 comment
Open

extent in TMSSource seem not work #1079

liujingjie opened this issue Mar 14, 2019 · 1 comment
Labels
Milestone

Comments

@liujingjie
Copy link

var extent84 = new itowns.Extent(
    'EPSG:4326',
    116.710666948693, 116.845104311178,
    36.2984934575504, 36.4445095937182);

var tmsSource2 = new itowns.TMSSource({
    format: 'image/png',
    url: 'http://.com/${z}/${x}/${y}.png',
    zoom: {
        min: 8,
        max: 20
    },
    extent: extent84,
    tileMatrixSet: 'PM',
});
var colorLayer2 = new itowns.ColorLayer('msz', {
    source: tmsSource2,
});
view.addLayer(colorLayer2);

i add a tms layer into the view and i use extent to control the extent of the loaded map,but itowns request the png out of the extent,

@gchoqueux gchoqueux added this to the 2.xx.x milestone Mar 19, 2019
@gchoqueux
Copy link
Contributor

Thanks to report this issue.
Effectively, the extent isn't used in the conditions to display the source, see TMSSource.extentInsideLimit. We'll fix the problem.

@gchoqueux gchoqueux modified the milestones: 2.xx.x, to strike Jan 17, 2020
@mgermerie mgermerie modified the milestones: to strike, 2.xx.x Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants