'Output the Layers as global Javascript
- suitable for inclusion in the HTML page'

def as_javascript(self):

    result = self.as_json()
    if result:
        return ('S3.gis.%s=%s\n' % (self.dictname, result))
