tombatossals / angular-leaflet-directive

AngularJS directive to embed an interact with maps managed by Leaflet library
http://tombatossals.github.io/angular-leaflet-directive
MIT License
1.5k stars 635 forks source link

markers with special characters like dot #1195

Open aoreinoso opened 5 years ago

aoreinoso commented 5 years ago

$scope.markers[nombre] = { lat: latitud, lng: longitud, draggable: false };

it works with: nombre = 'BB Hotel Granada'

if nombre = 'B&B Hotel Granada' I need nombre = nombre.replace(/&/g, "\&"); so it works with: nombre = 'B\&B Hotel Granada'

But i nombre = 'BB Hotel. Granada' doesn't work

if there is a dot in name doesn't work

Thanks in advance

aoreinoso commented 5 years ago

it is possible to use something like: Marker (location = [45.5, -122.3], popup = Popup ('Mom & Pop Arrow Shop >>', parse_html = True)) Thank you