我正在尝试将openlayers 3 map导出到PNG.
此示例运行良好http://openlayers.org/en/master/examples/export-map.html,但导出图像的宽度和高度是原始地图画布的两倍.
如果地图画布是1330x440,我将导出的png图像显示为2660x880像素.
知道如何让出口尺寸与帆布尺寸相同吗?
我有一个要求我需要将数据插入到不同数据库的两个表中.
$insert_query = 'INSERT INTO table1 (col1, col2) values(1, 2)';
$insert_otherdb_query= 'INSERT INTO otherdb.table1 (col1, col2) values(1, 2)';
$this->db->query($insert_query); //works fine
$this->db->query($insert_otherdb_query); //doesn't work
Run Code Online (Sandbox Code Playgroud)
错误
表'mydb.otherdb.table1'不存在
它不会忽略mydb这是我的默认数据库...
任何suggesstions?