Questions tagged [angular-leaflet-directive]

AngularJS directive used to embed and interact with maps managed by the Leaflet library.

This directive allows you to embed a map on your AngularJS application and interact bi-directionally with it via the AngularJS scope and the leaflet map library API.

Useful Links
GitHub

253 questions
0
votes
1 answer

Using PruneCluster with AngularJS Leaflet Directive

I am having problems loading clustered markers for geojson data using PruneCluster. The clusters are not displayed and there are no errors in the console to help in trouble shooting. Here is my current controller.js code: …
Jonah
  • 41
  • 3
  • 10
0
votes
1 answer

TypeError: points.map is not a function at addressPointstoMarkers using AngularJS Leaflet Directive

I am trying to load and cluster markers from a geojson file using AngularJS leaflet directive. However, I am getting an TypeError: points.map is not a function at addressPointstoMarkers. Below is my code:
Jonah
  • 41
  • 3
  • 10
0
votes
1 answer

How to access context menu in angular-leaflet-directive

Can you please tell me how do I create and use context menu in angular-leaflet-directive. I couldnt find it on the documentation Please give an example for the same. Thanks.
Fracedo
  • 626
  • 7
  • 23
0
votes
1 answer

ng-include with ng-click raise submit - how to avoid it?

I have html template:
Name:
And I add it like this: "
1110
  • 7,829
  • 55
  • 176
  • 334
0
votes
1 answer

How to display a directive in a Marker Popup in angular-leaflet-directive

I have a leaflet-directive on which a plot a bunch of markers. Clicking on a marker should open a message box with a lot of controls and events. I have created a directive called infowindow which has all the functionality I need. I create a marker…
yazz
  • 301
  • 5
  • 15
0
votes
1 answer

geojson in angular-leaflet-directive with MEANjs

I'm trying to duplicate this example from angular-leaflet-directive, but using the Angular MVC framework that is implemented in MEAN.JS. angular-leaflet-directive accepts and displays the correct tiles, center, and maxBounds that I specify in my…
0
votes
1 answer

Angular-leaflet-directive syntax Error: Token '{' invalid key at column 2 of the expression

I have issue when use angular-leaflet-directive to create multiple map. I have list City and i want to use ng-reapeat to display many map. this is code
Võ Minh Tâm
  • 59
  • 2
  • 9
0
votes
1 answer

leaflet markercluster does not recognize layeroptions

I am using the angular-leaflet-directive and Leaflet.markercluster. I am able to load markers within a service and now I want to present the markers on a map. The markers are printed and clustered in the standard markercluster way. It seems that my…
0
votes
0 answers

Leaflet autoPan not panning enough vertically

I have popups on markers activating successfully and autoPan is set to true by default. The map is panning successfully horizontally to ensure a popup is visible when the marker is close to the edge of the map. It is panning vertically (down), but…
Nick
  • 527
  • 1
  • 4
  • 8
0
votes
1 answer

Is it possible to use leaflet.js and angular-leaflet-directive together?

I am trying to create layergroup that use data from geojson file with angular-leaflet-directive. but have not found the solution. Is it possible to use leaflet.js to create dynamic layergroup when I am using angular-leaflet-directive? Thanks for…
Sepid
  • 107
  • 1
  • 10
0
votes
1 answer

Why some object methods are invisible in a console log

I am using a plugin to integrate leaflet into an AngularJS project. As I wanted to check if the API was the same as the standard leaflet, I logged into the Chrome console the leaflet object provided by dependency injection; several methods were…
0
votes
1 answer

Rotate marker in angular-leaflet-directive

EDIT: I don't care on how to fix my code/why it's behaving like that, I just want to rotate a marker in angular-leaflet-directive, around its center. I'm aware of the question here but I have no idea on how to get the DOM element of every marker.…
RaidenF
  • 3,411
  • 4
  • 26
  • 42
0
votes
1 answer

How to create a Leaflet map layer from 30,000+ points?

I'm building a map app for which I have to show the volume of our user base. I have 30,000+ coordinates and I am wondering what is the best way to display them without impinging too much on performance. I figured creating a custom tile/layer would…
JohnT
  • 103
  • 2
  • 12
0
votes
1 answer

Angular-Leaflet-Directive layers

I’m building a project that makes use of clickable markers and shapes on a floor plan. The markers are going well and seem pretty straightforward… $scope.markers =…
Eric_WVGG
  • 2,957
  • 3
  • 28
  • 29
0
votes
3 answers

How to optimize leaflet path?

I have a path that has over 13,000 lat/lon points. Testing locally it works fine, but once on a device it's SUPER taxing and laggy. The path is so dense because the path has been snapped to roads. What can I do in order to optimize things so my app…