The JSON is correctly interpreted with jquery.

I tried to move the call 

myStyles.addUniqueValueRules("default", "type", JSONStyles);


in the callback of my ajax query and it is working.

I forgot that if this call is placed after the ajax, JSONStyles will be
interpreted as a null object because the ajax query is not finished and even
if I specified async:false.

Thanks for your help


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/StyleMap-and-dynamic-loaded-styles-tp4961340p4961390.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to