Whenever I switch from using a relative URL to an absolute one, my markers mysteriously disappear.
In the view, I have the following code:
<marker ... icon="{url: '{{markerSrc}}'}"></marker>
When I set this in my controller:
$scope.markerSrc = "/images/marker.png";
everything works perfectly and the icon is displayed
However, if I change it to:
$scope.markerSrc = "http://complete/path/to/marker/images/marker.png";
I encounter an error:
GET http://localhost:9000/%7Burl:%20'http://complete/path/to/marker/images/marker.png'%7D 404 (Not Found)
I've tried various approaches like
<marker ... icon="{url: "'{{markerSrc}}'" }"></marker>
<marker ... icon="{url: "{{markerSrc}}" }"></marker>
<marker ... icon="{url: {{markerSrc}} }"></marker>
but none of them seem to solve the issue...