We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since currently you can only pass in a string, and I had to be able to dynamically change my markers...
(function() { 'use strict'; angular.module('angular-mapbox').directive('featureLayer', function() { return { restrict: 'E', require: '^mapbox', scope: { 'mapData': '=' }, link: function(scope, element, attrs, controller) { controller.getMap().then(function(map) { var featureLayer = L.mapbox.featureLayer().addTo(map); featureLayer.on('layeradd', function(e) { var marker = e.layer, feature = marker.feature; marker.setIcon(L.icon(feature.properties.icon)); }); scope.$watch('mapData', function(data) { if(data) { featureLayer.setGeoJSON(data); } }); }); } }; }); })();
Example in jade
mapbox#map-container(map-id="XXXX",zoom="18",trackResize="true",height="{{ mapHeight }}",width="100%") feature-layer(map-data="$parent.mappedVenues")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since currently you can only pass in a string, and I had to be able to dynamically change my markers...
Example in jade
The text was updated successfully, but these errors were encountered: