OpenLayers map definitions can get very large, especially when using features on views layers. Pushing this all through drupal_to_js can get very costly -- this patch adds conditional usage of json_encode (PHP 5.2+) when available.

Patched against DRUPAL-6--2, but it's a very isolated change so should be easy to backport against 1.x, 0.x.

CommentFileSizeAuthor
openlayers_json_encode.patch940 bytesyhahn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tmcw’s picture

Patched in 2.x and 0.x.

tmcw’s picture

Status: Needs review » Fixed

Closed / fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.