def get_js(self): defaultsetting = getUtility(IRegistry).forInterface(IGeoSettings) zoom = int(defaultsetting.zoom) shape = asShape(self.coordinates.geo) lat = shape.centroid.y lon = shape.centroid.x return create_map_js(self.context, self.layers())
def get_js(self): return create_map_js(self.context, self.layers())