Closed codeagainstmachine closed 7 years ago
Both libraries are incompatible, please check ui-integration for google maps: http://angular-ui.github.io/ui-leaflet/examples/0000-viewer.html#/layers/googlemaps-example
@nmccready any comment?
I haven't really looked at this, but my first reaction is why are you using both in the same app? As a workaround you might want a separate angular app on your page. One for angular-google-maps and one for ui-leaflet.
I was able to solve this by removing center: '=',
on about line 14 and removing 'center',
from var centerDirectiveTypes = ['center', 'lfCenter'],
on about line 3200.
This forces you to use lf-center instead of center though, so be aware. This also will be overwritten by each update, and has to be done with every install. You have been warned!
Also encountering this error. I think the center directive here should be namespaced as lf-center
. Center is a pretty ambiguous name.
This is not issue. both directives should not be in the same app. Closing this issue.
Nice...
My log error
my app.js
my view for angular-google-map
my view for angular-leaflet-directive
I noticed that leaflet-directive reads all "center" html attributes in different tags, including "ui-google-map", so modified my angular-leaflet-directive.js file, eliminating the "center" attribute from the $scope. That partially solved my problem since I will continue to have conflicts with the "bounds" attribute.