Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

path not being displayed in map #44

Open
nmccready opened this issue Oct 29, 2015 · 2 comments
Open

path not being displayed in map #44

nmccready opened this issue Oct 29, 2015 · 2 comments

Comments

@nmccready
Copy link
Contributor

From @zebarahman on January 25, 2015 17:34

hi, im using angularjs + ionic framework + leaflet.js. i want to show paths, i followed the paths example code, but the path is just not showing up. i added the modules in the same order as in the example ...the map centers to the given location and also shows markers if i specify there but the paths don't appear, what am i doing wrong?

Copied from original issue: tombatossals/angular-leaflet-directive#617

@nmccready
Copy link
Contributor Author

From @MarkAPhillips on May 8, 2015 15:12

if you are using promises ensure the following - I had this issue today that was driving me nuts e.g.

$scope.paths = {};
$promise.then(function() {

       angular.extend($scope, {
                    paths: {
                        c1: {
                            weight: 2,
                            color: "#ff612f",
                            latlngs: { lat: 1, lng: -2 },
                            radius: 50,
                            type: "circleMarker"
                        }
                    }
                });        
 }

if you exclude the initialisation paths will not be shown - I think this also the case for markers - please can this be documented - thanks

@nmccready
Copy link
Contributor Author

From @michaelkrog on August 21, 2015 13:9

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant