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

Confusion around tileLayerOptions and layerOptions #625

Closed
facultymatt opened this issue Feb 6, 2015 · 3 comments
Closed

Confusion around tileLayerOptions and layerOptions #625

facultymatt opened this issue Feb 6, 2015 · 3 comments

Comments

@facultymatt
Copy link

The use cases for tileLayerOptions and layerOptions are unclear in the examples and documentation.

For example here:

tileLayerOptions: {
opacity: 0.9,
detectRetina: true,
reuseTiles: true,
},

and here:

tileLayerOptions: {
detectRetina: true,
opacity: 0.8
}

However in practice I have found that to get detectRetina to work, you need to put it inside layerOptions and not tileLayerOptions as suggested.

The two above links should be corrected, or the documentation clarified to remove confusion here.

@MattSidor
Copy link

+1 on this. Documentation and examples are unclear on when to use layerOptions and when to use tileLayerOptions.

I, too, can only get detectRetina to work under layerOptions, but I can't figure out what exactly makes my map project different from the examples.

@nmccready
Copy link
Contributor

This issue was moved to angular-ui/ui-leaflet#48

@tombatossals
Copy link
Owner

I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it.

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

5 participants