[OpenLayers-Users] StyleMap and dynamic loaded styles
Jerome Freyre
jerome.freyre at hispeed.ch
Mon Apr 26 03:43:40 EDT 2010
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.
More information about the Users
mailing list