Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    limewar
    @limewar
    Could someone take a look at my problem please, above or isn't there an option implemented in the directive to disable drag?
    Elizabeth Royalty
    @beloculus
    @limewar - are you getting a map object by wrapping your call in "leafletData.getMap().then(function(map) {})"?
    I'm doing that and am able to successfully call map.dragging.disable().
    If you're doing that and are still unable to disable dragging, could you please mock up what you're seeing in plnkr?
    limewar
    @limewar
    @beloculus No I wasn't, this fixed my problem, thank you!
    Julian David Rath
    @julian-r
    hello
    I would like to integrate something like that: https://www.npmjs.com/package/leaflet-search
    any suggestions?
    Alexandru Pufan
    @pufanalexandru
    Hello, is there any method to see the available geoJson methods, like '''
    leafletEvents.getAvailableMarkerEvents()
    ''' is for markers? I've tried '''leafletEvents.getAvailableGeoJsonEvents()''', but it doesn't seem to exist.
    Robbie McClellan
    @TheGalacticNinja
    Hi i am trying to use this directive. I am following the simple map tutorial from the documentation. Everything works except the osm tile doesnt appear. Any suggestions on how to fix this
    Robbie McClellan
    @TheGalacticNinja
    i figured out the problem....i downloaded the files by source and included them in my html file....the error was coming from the angular-leaflet file because the osm link was incomplete without 'https:'....i included that piece and it started working
    Carlos Mantilla
    @ceoaliongroo
    There is some example using leafletBoundsHelpers (calculate boundaries) factory from a center position data?
    erik-sjoestedt
    @erik-sjoestedt
    Hello, has anyone had problems using this directive with Firefox? When I create markers in Firefox I "innerText" is undefined (Firefox doesn't support innerText), but replacing it with "textContent" (https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) seems to work
    nmccready
    @nmccready
    @erik-sjoestedt can u make a plnkr with it happening please?
    Mark Gerrits
    @skinny
    hi all
    I have a quick question: does the leaflet-directive support the circleMarker out of the box ?
    (38.0.5 on Mac)
    Ivan Melnikov
    @ivanempire
    Hello, everyone! I have a quick question regarding the mapbox access token and ID; mainly whether or not we need to specify? I got my map working, but I am not sure why this worked without my information? For the native Leafleft library, I had to specify everything... Thanks in advance for your time!
    Eric Czajkowski
    @eczajk1

    is there a branch dedicated to updating this project to Leaflet 1.0? haven't seen much discussion on this other than this issue: tombatossals/angular-leaflet-directive#851

    cheers!

    krichtof
    @krichtof

    Hi everyone. Sorry if you think it's a dumb question. I'm an angular newbie. I've got some problem when I try to include not only the leaflet-directive dependency on my angular module :

    angular.module('MyAngularMap', ['ngRoute', 'ngResource','leaflet-directive']);
    angular.module('OpenMusicMap').controller('ArtistsShowController', function($scope, $routeParams, Artist) {
    // some code here
    });

    And that error on my chrome console :

    Error: [$injector:unpr] Unknown provider: ArtistProvider <- Artist
    Have you ever had this kind of problem ?
    Of course, I did'nt have this problem before including leaflet-directive
    Pedro Rivas
    @frobs
    Hi, i have a little question with maxbounds, i try to set it as the example http://tombatossals.github.io/angular-leaflet-directive/#!/examples/maxbounds but doesn't works, couldanyone say me what is wrong?, thank you
    Idan Lahav
    @ageblade
    Hi all, do you think we should use .addTo(map) instead of map.add() ?
    I noticed it is alot more robust and can support custom logic by custom layers
    arkhemlol
    @arkhemlol
    Hi all, newbie here. Is it possible to instantiate markers as an object, not as an array? I need markers to behave as object.
    nmccready
    @nmccready
    @arkhemlol yes it handles both. Please see examples. Also it supports nesting if you set markers-nested to true in attributes.
    arkhemlol
    @arkhemlol
    @nmccready Thanks for the reply.
    arkhemlol
    @arkhemlol
    This message was deleted
    Mikael Korpela
    @simison
    are there any significant differences between 'group' and 'featureGroup' overlay types with this library? Latter one works while the first one gives me errors #926
    arkhemlol
    @arkhemlol
    Is it possible to watch for marker's lat and lng changes (e.g. when dragging )? I want to update another app model. Currently getting 'too much $digest iterations' error because the marker's lats and lngs are already watched by leafletDirective, i presume. Newbie both in angularjs and directive. Thanks in advance.
    arkhemlol
    @arkhemlol

    Is it actually possible to cancel marker 'click' event without redrawing the marker itself? I'm trying to cancel it like this:

    function disableMarkersEvents(events) {
          var self = this;
          if(typeof events !== 'object') {
            events = [events];
          }
          $timeout(function() {
            self.getMapScope().$apply(function() {
              var map = self.getMap();
              map.events.markers.disable = [].concat(events);
              var len = map.events.markers.enable.length;
              var idx;
              while(len--) {
                idx = _.indexOf(events, map.events.markers.enable[len]);
                if(idx > -1) {
                  map.events.markers.enable.splice(idx, 1);
                }
              }
              console.log(map);
            })
          });
        }

    Changes apply only after the marker is redrawn.

    Nikita Skovoroda
    @ChALkeR
    @tombatossals Are you around?
    Mike DeVita
    @mikedevita
    morning everyone
    anyone on?
    213374you
    @213374you
    is it possible for markers to be an array, rather than an object with a collection of objects?
    Thnx!
    nmccready
    @nmccready
    @213374you yes either should work
    213374you
    @213374you

    So, rather than

    angular.extend($scope.data, {
    markers: {
    m1: {
    lat: 51.505,
    lng: -0.09,
    compileMessage: false,
    message: "I'm a static marker",
    },
    m2: {
    lat: 51,
    lng: 0,
    focus: true,
    message: "<div ng-include src=\"'views/template.html'\"></div>",
    draggable: true,
    },
    m3: {
    lat: 51,
    lng: -1,
    getMessageScope: function () { return $scope; },
    message: "<p>{{data.angularInterpolatedMessage}}</p>",
    compileMessage: true
    }
    }
    });
    };

    is it possible to do:

    angular.extend($scope.data, {
    markers: [
    m1: {
    lat: 51.505,
    lng: -0.09,
    compileMessage: false,
    message: "I'm a static marker",
    },
    m2: {
    lat: 51,
    lng: 0,
    focus: true,
    message: "<div ng-include src=\"'views/template.html'\"></div>",
    draggable: true,
    },
    m3: {
    lat: 51,
    lng: -1,
    getMessageScope: function () { return $scope; },
    message: "<p>{{data.angularInterpolatedMessage}}</p>",
    compileMessage: true
    }
    ]
    });
    };

    Sorry for spam! I am new to gitter and not sure how to put in code
    @nmccready Thank you! This makes my life much easier
    nmccready
    @nmccready
    code formatting is identical to git markdown
    that bower missing files -bug should be fixed now I assume.
    nmccready
    @nmccready
    @simison cool
    @simison want to PR changes to 1.X branch?
    Mikael Korpela
    @simison
    might look into it later, extremely busy right now
    nmccready
    @nmccready
    cool ty
    nmccready
    @nmccready