本文整理匯總了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";