angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

Marker type Point fails if properties lat lng provide the coordinates vs an array #155

Open nmccready opened 9 years ago

nmccready commented 9 years ago

From @bwmcin on April 17, 2015 3:56

Using 0.7.13. _validateCoords returns true if the coords.type = 'Point' and properties 'lat' and 'lng' exist and are numbers (see line 442). But in _getCoords this condition is not recognized and type 'Point' is assumed to have an array for the coordinates, resulting in an exception (lines 455-456).

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

nmccready commented 9 years ago

Please copy the urls with the line numbers in them. It makes everyone's world easier.

nmccready commented 9 years ago

Also reference the source code line numbers and not the dist file.