How can i style my mapnik?

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 :frowning:

I hope that somebody can help me :confused:

I think you cannot style the mapnik layer. This layer is an image that comes from another server where everything is already rendered. In case you want a different style, you need to set up your own tile server with your style.

The page you are referring to is to style an additional text layer.

thank you escada
for your answer :wink: