Hello,
How can i style my font-size from the mapnik(OpenLayers) the easiest way?
My wishes: To scale the font-size from the citys:
This i tried: (the idea is from here: http://openweathermap.org/tutorial/openlayers))
<html>
<head>
<title>Hello</title>
<script src="http://openlayers.org/api/OpenLayers.js"></script>
<script src="http://openweathermap.org/js/OWM.OpenLayers.1.3.4.js"></script>
</head>
<body onLoad="init()">
<div id="basicMap"> </div>
</body>
<script type="text/javascript">
function init(){
var map = new OpenLayers.Map("basicMap");
var styleMap = new OpenLayers.Style({
fontSize: "30px",
}
);
var mapnik = new OpenLayers.Layer.OSM("mapni", {StyleMap: "styleMap"});
//var mapnik = new OpenLayers.Layer.OSM("mapni");
map.addLayers([mapnik]);
map.setCenter(new OpenLayers.LonLat(500000, 6300000), 10);
}
</script>
</html>
I found this (http://dev.openlayers.org/docs/files/OpenLayers/Style-js.html), but i donβt understand it
I hope that somebody can help me