Hi all,

i'm facing about a strange cross domaine issue with an angular app that use 
the openlayers 3 library.
I have create an directive for openlayers 3 obj (a map), and all is working 
fine, but if i pass a object as style reference to the directive, i'm 
facing with a 

Error: Blocked a frame with origin "http://localhost"; from accessing a 
cross-origin frame.

If you don't know Ol3,  the object i passed is not refernce to external 
source or so , but juste un object (style object in this case).

For resume : 
1 - i build an object : $scope.myStyle = {image :{color : new ol.style.Fill 
('#FF0000'}, stroke : new ol.style.Stroke('width : 5)};

2 - passing this object to my ol directive with "=" parameter ;

3 - read and apply this in the ol object in the directive.

All i working fine with all type of style, but not if i use this above 
example with image parameter. I don't knoiw why, because the image 
parameter use an Fill type only, without reference to other thing, and a 
style with fill only is working.

If i apply the style without an directive, i don't receive this cros 
message error.

Sorry about this confusing description, but i don't know how to solve this.

Than's for your help.


fbm




-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to