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

zoom level for vector tile #136

Open
redheli opened this issue May 4, 2016 · 1 comment
Open

zoom level for vector tile #136

redheli opened this issue May 4, 2016 · 1 comment

Comments

@redheli
Copy link

redheli commented May 4, 2016

Hi,

vector tile source is posgGIS, :
url: 'http://localhost:3001/services/postgis/cleantech3/geom/vector-tiles/{z}/{x}/{y}.pbf?fields=name'

at zoom level <=18 , everything ok.

from zoom level 19, layer disappear.

any idea?

@redheli
Copy link
Author

redheli commented May 4, 2016

I solved the problem.
add zoomMax at layer options, as blow

var pbfSource = new L.TileLayer.PBFSource({
url: 'http://localhost:3001/services/postgis/xxx/geom/vector-tiles/{z}/{x}/{y}.pbf?fields=name',
debug: false,
maxZoom: 22,
minZoom: 6,
clickableLayers: [],
getIDForLayerFeature: function(feature) {
return "";
}
});

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