Ejemplo n.º 1
0
 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())
Ejemplo n.º 2
0
 def get_js(self):
     return create_map_js(self.context, self.layers())