Código Javascript:
Ver original
[{"hc-key":"es-a","value":1},{"hc-key":"es-ab","value":1},{"hc-key":"es-al","value":1},{"hc-key":"es-av","value":1},{"hc-key":"es-b","value":1},{"hc-key":"es-ba","value":1},{"hc-key":"es-bi","value":1},{"hc-key":"es-bu","value":1},{"hc-key":"es-c","value":1},{"hc-key":"es-ca","value":1},{"hc-key":"es-cc","value":1},{"hc-key":"es-ce","value":1},{"hc-key":"es-co","value":1},{"hc-key":"es-cr","value":1},{"hc-key":"es-cs","value":1},{"hc-key":"es-cu","value":1},{"hc-key":"es-gc","value":1},{"hc-key":"es-gi","value":1},{"hc-key":"es-gr","value":1},{"hc-key":"es-gu","value":1},{"hc-key":"es-h","value":1},{"hc-key":"es-hu","value":1},{"hc-key":"es-j","value":1},{"hc-key":"es-l","value":1},{"hc-key":"es-le","value":1},{"hc-key":"es-lo","value":1},{"hc-key":"es-lu","value":1},{"hc-key":"es-m","value":1},{"hc-key":"es-ma","value":1},{"hc-key":"es-me","value":1},{"hc-key":"es-mu","value":1},{"hc-key":"es-na","value":1},{"hc-key":"es-o","value":1},{"hc-key":"es-or","value":1},{"hc-key":"es-p","value":1},{"hc-key":"es-pm","value":1},{"hc-key":"es-po","value":1},{"hc-key":"es-s","value":1},{"hc-key":"es-sa","value":1},{"hc-key":"es-se","value":1},{"hc-key":"es-sg","value":1},{"hc-key":"es-so","value":1},{"hc-key":"es-ss","value":1},{"hc-key":"es-t","value":1},{"hc-key":"es-te","value":1},{"hc-key":"es-tf","value":1},{"hc-key":"es-to","value":1},{"hc-key":"es-v","value":1},{"hc-key":"es-va","value":1},{"hc-key":"es-vi","value":1},{"hc-key":"es-z","value":1},{"hc-key":"es-za","value":1}]
Luego este json lo copio en el data de higchmaps y lo recibe correctamente , pero cuando trato de pasarle la variable php , me carga el mapa de las províncias pero no me carga el valor , alguien me puede ayudar ?? Si el JSON lo pasa bien es que no re
Código PHP:
Ver original
El JSON me imprime correctamente
Código Javascript:
Ver original
var data = [{"hc-key":"es-a","value":1},{"hc-key":"es-ab","value":1},{"hc-key":"es-al","value":1},{"hc-key":"es-av","value":1},{"hc-key":"es-b","value":1},{"hc-key":"es-ba","value":1},{"hc-key":"es-bi","value":1},{"hc-key":"es-bu","value":1},{"hc-key":"es-c","value":1},{"hc-key":"es-ca","value":1},{"hc-key":"es-cc","value":1},{"hc-key":"es-ce","value":1},{"hc-key":"es-co","value":1},{"hc-key":"es-cr","value":1},{"hc-key":"es-cs","value":1},{"hc-key":"es-cu","value":1},{"hc-key":"es-gc","value":1},{"hc-key":"es-gi","value":1},{"hc-key":"es-gr","value":1},{"hc-key":"es-gu","value":1},{"hc-key":"es-h","value":1},{"hc-key":"es-hu","value":1},{"hc-key":"es-j","value":1},{"hc-key":"es-l","value":1},{"hc-key":"es-le","value":1},{"hc-key":"es-lo","value":1},{"hc-key":"es-lu","value":1},{"hc-key":"es-m","value":1},{"hc-key":"es-ma","value":1},{"hc-key":"es-me","value":1},{"hc-key":"es-mu","value":1},{"hc-key":"es-na","value":1},{"hc-key":"es-o","value":1},{"hc-key":"es-or","value":1},{"hc-key":"es-p","value":1},{"hc-key":"es-pm","value":1},{"hc-key":"es-po","value":1},{"hc-key":"es-s","value":1},{"hc-key":"es-sa","value":1},{"hc-key":"es-se","value":1},{"hc-key":"es-sg","value":1},{"hc-key":"es-so","value":1},{"hc-key":"es-ss","value":1},{"hc-key":"es-t","value":1},{"hc-key":"es-te","value":1},{"hc-key":"es-tf","value":1},{"hc-key":"es-to","value":1},{"hc-key":"es-v","value":1},{"hc-key":"es-va","value":1},{"hc-key":"es-vi","value":1},{"hc-key":"es-z","value":1},{"hc-key":"es-za","value":1}];
Alguna idea ?