How can i style my mapnik?


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:

<script src=""></script>
<script src=""></script>

<body onLoad="init()">
<div id="basicMap"> </div>
<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.setCenter(new OpenLayers.LonLat(500000, 6300000), 10);

I found this (, 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: