本文整理汇总了PHP中DbUtils::getPreviewMapUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP DbUtils::getPreviewMapUrl方法的具体用法?PHP DbUtils::getPreviewMapUrl怎么用?PHP DbUtils::getPreviewMapUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbUtils
的用法示例。
在下文中一共展示了DbUtils::getPreviewMapUrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: parseSld
$styledlayerdescriptor = parseSld($data);
$_SESSION["sld"] = $data;
/* Check for a related WFS featuretype */
$wfs_conf_id = $dbutils->getLayerWfsConfId($_SESSION["sld_gui_id"], $layer_id);
if ($wfs_conf_id) {
$featuretype_id = $dbutils->getWfsConfFeatureTypeId($wfs_conf_id);
$classWfsConf->getelements($featuretype_id);
$wfs_element = $classWfsConf->elements;
$fts = $styledlayerdescriptor->layers[0]->styles[0]->featuretypestyles[0];
$fts->setElementArray("element_id", $wfs_element->element_id);
$fts->setElementArray("element_name", $wfs_element->element_name);
} else {
$wfs_element = false;
}
/* create getMap-Url for preview with/without sld */
$previewMapUrl = $dbutils->getPreviewMapUrl($_SESSION["sld_gui_id"], $layer_id, $_SESSION["sld_wms_id"]);
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
echo "<html>\n";
echo "<head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n";
echo "<meta HTTP-EQUIV=\"CACHE-CONTROL\" CONTENT=\"NO-CACHE\">\n";
echo "<META HTTP-EQUIV=\"PRAGMA\" CONTENT=\"NO-CACHE\">\n";
echo "<title>Mapbender - SLD Editor</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../css/sldEditor.css\">\n";
echo "</head>\n";
echo "<body leftmargin=\"10\" topmargin=\"0\">\n";
## - Fensteranfang
echo "<table width=\"800px\" border='0' cellspacing='0'>\n";
## - 1.Zeile
echo " <tr>\n";
echo " <td class='text2 bg2' colspan='2'>\n";