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

custom layers #564

Closed
robotnic opened this issue Dec 11, 2014 · 4 comments
Closed

custom layers #564

robotnic opened this issue Dec 11, 2014 · 4 comments

Comments

@robotnic
Copy link

I wan't to use 2 special layers

https://github.com/glenrobertson/leaflet-tilelayer-geojson
and
https://github.com/afsuarez/mapsforge-cordova-plugin

I have seen "custom" layer in the source code, but I don't know how to use that.

@porjo
Copy link

porjo commented Jan 16, 2015

Have you looked at the examples here: http://tombatossals.github.io/angular-leaflet-directive

@ageblade
Copy link

Hi, this is the way you can use custom layers (This example use leaflet IIP plugin)

$scope.layers.overlays["iip"] = {
    name: 'iip',
    type: 'custom',
    visible: true,
    layer: L.tileLayer.iip(url, options)
};

Just initialize your custom layer into the layer property and set a name, visible and type = 'custom'.

Good luck,

@nmccready
Copy link
Contributor

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

@nmccready nmccready reopened this Oct 29, 2015
@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