def test_add_layer_to_map(self):
     self.logger.debug("\n*******************************************************************************")
     self.logger.debug("\nTest add layer to map. Layer: test_ideca_localidades")
     self.logger.debug("\n*******************************************************************************")
     cartodbApi = CartoDBApi(cartodb_user, api_key, is_multiuser)
     cartodbApi.fetchContent.connect(self.signalsObject.cb_add_layer_to_map_result)
     cartoCSS = "#test_ideca_localidades { polygon-fill: #7B00B4; polygon-opacity: 0.6; line-color: #0F3B82; line-width: 0.5; line-opacity: 1; }"
     cartodbApi.addLayerToMap("df48f415-2ed5-4aaa-ac73-ded9d64f5bd3", "test_ideca_localidades", cartoCSS)
Exemple #2
0
 def test_add_layer_to_map(self):
     self.logger.debug("\n*******************************************************************************")
     self.logger.debug('\nTest add layer to map. Layer: test_ideca_localidades')
     self.logger.debug("\n*******************************************************************************")
     cartodbApi = CartoDBApi(cartodb_user, api_key, is_multiuser)
     cartodbApi.fetchContent.connect(self.signalsObject.cb_add_layer_to_map_result)
     cartoCSS = '#test_ideca_localidades { polygon-fill: #7B00B4; polygon-opacity: 0.6; line-color: #0F3B82; line-width: 0.5; line-opacity: 1; }'
     cartodbApi.addLayerToMap(test_map, 'test_ideca_localidades', cartoCSS)