File "termap.php"
Full path: /www/ansys/qgis/000_nasu2/termap/termap.php
File size: 1.79 KiB (1838 bytes)
MIME-type: text/x-php
Charset: utf-8
<?php
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n";
print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\" >\r\n";
print "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"ja\" lang=\"ja\">\r\n";
print "<head>\r\n";
print "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\" />\r\n";
print "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\r\n";
print "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\r\n";
print "<meta equiv=\"expires\" content=\"0\" />\r\n";
print "<meta http-equiv=\"imagetoolbar\" content=\"no\" />\r\n";
print "<!--ie image gizmo OFF!-->\r\n";
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"./css/style.css\" />\r\n";
print "<script src=\"/library/jquery-1.10.2/jquery-1.10.2.min.js\"></script>\r\n";
print "<script src=\"/map/mapserver-extensions/OpenLayers-2.10/OpenLayers.js\"></script>\r\n";
print "<script src=\"./termap.js\"></script>\r\n";
print "<script type=\"text/javascript\">\r\n";
?>
function setPoint(lon_, lat_)
{
alert("setPoint");
if (_objectLayer != null)
_objectLayer.destroyFeatures();
var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style["default"]);
_objectLayer = new OpenLayers.Layer.Vector("objectLayer", {style:layer_style});
addObject(_objectLayer, "位置", lon_, lat_, "#cc0033", 35, 10, 5, "circle", 12);
_map.addLayer(_objectLayer);
var centerPoint = new OpenLayers.Geometry.Point(lon_, lat_);
_map.setCenter(new OpenLayers.LonLat(centerPoint.x, centerPoint.y), DEFAULT_ZOOM);
}
<?php
print "</script>\r\n";
print "<title>運行管理マップ-試験-</title>\r\n";
print "</head>\r\n";
print "<body>\r\n";
print "<div id=\"map\"></div>\r\n";
print "</body>\r\n";
print "</html>\r\n";
?>