[OpenLayers-Users] Problem with fonts
E.Stefanakis
estef at hua.gr
Mon Dec 24 12:04:19 EST 2007
Dear friends
I face a problem with fonts in a mapserver+openlayers application I am developping.
I need greek fonts (ISO-8859-7) and the application fails to show them when it
retrieves a string from either the template of the wms layer via OpenLayers.Util.getElement
request.
Specifically I have defined the following...
the .html [openlayer application]
============================================================
<HTML>
<HEAD><TITLE>ΑΤΛΑΝΤΑΣ ΑΚΤΗΣ (ΠΕΠ Κρήτης 2006-08) - Εφαρμογή σε OpenLayers</TITLE>
<!--Template version 1.02--><LINK href="icons/iacm.css" type=text/css rel=stylesheet>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
...
map.events.register('click', map, function (e) {
OpenLayers.Util.getElement('nodeList').innerHTML = "Ανάκτηση θεματικών δεδομένων... Παρακαλώ περιμένετε ...";
var url = dhmoi_irakliou.getFullRequestString({
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX: dhmoi_irakliou.map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/html',
QUERY_LAYERS: dhmoi_irakliou.params.LAYERS,
WIDTH: dhmoi_irakliou.map.size.w,
HEIGHT: dhmoi_irakliou.map.size.h});
OpenLayers.loadURL(url, '', this, setHTML);
Event.stop(e);
});
...
<div id="nodeList" style="position:absolute; top:520px; background-color: red; font-size: 10pt;"></div>
the .map file
=======================================================
...
WEB
IMAGEPATH "c:/ms4w/apps/ITE/htdocs/tmp/"
IMAGEURL "/tmp/"
METADATA
"wms_title" "COAST ATLAS SDI WMS Server (infocharta)"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?"
"wms_feature_info_mime_type" "text/html"
"wms_srs" "EPSG:4326"
"wms_encoding" "ISO-8859-7" #Greek fonts
END
END
...
LAYER
NAME 'dhmoi_irakliou'
TYPE POLYGON
DATA 'C:\ITE_DATA\sdi_data\infocharta\dhmoi_irakliou.shp'
METADATA
'wms_title' 'dhmoi_irakliou'
END
STATUS OFF
PROJECTION
"init=epsg:2100"
END
CLASS
TEMPLATE "c:/ms4w/Apache/htdocs/test/dhmoi_irakliou.html"
NAME 'dhmoi_irakliou'
STYLE
OUTLINECOLOR 0 0 0
COLOR -1 -1 -1
END
END
END
...
the template file ("c:/ms4w/Apache/htdocs/test/dhmoi_irakliou.html")
==========================================================
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
</HEAD>
<a href="http://localhost/cgi-bin/mapserver.exe?mode=indexquerymap&qlayer=dhmoi_irakliou&shapeindex=[shpidx]&shpext=[shpext_esc]&mapext=shape&map=[map]">
</a>
***ελληνικό κείμενο***: [NAMF_GR],.., [POP_01]
</HTML>
============================
the [NAMF_GR] is an attribute in greek - however the applications fails to type it in greek (little squares are shown instead). The [POP_01]
is a number and it's shown correctly. The "***ελληνικό κείμενο***:" is a text in greek and it isn't shown either.
Should you have any suggestion please let me know
Thanks in advance and seasong greetings!
Emmanuel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071224/67639bb2/attachment.html
More information about the Users
mailing list