Hi, 

I'm trying to add graticules to maps and for the epsg 4326 projection, there
are not problem.
But if I do it with a polar projection (north or south), Openlayers doesn't
draw circles but draw lines to represent latitudes.
This is my code, what's wrong?

var vector_graticule = new OpenLayers.Layer.Vector(
        "vector_grat", 
                        {isBaseLayer: false,
                                 projection: new 
OpenLayers.Projection("EPSG:4326")
                        });             

         graticule_epsgX = new OpenLayers.Control.Graticule ({
                        intervals: [10, 10, 10, 10, 5, 5, 2, 2, 2], //graticule 
width in degrees
f(current map zoom levels).
                        numPoints: 3, // num of points to use in each of the 
graticule lines.
default: 50.
                        labelled: true,
                        //labelFormat: 'd',
                        targetSize: 2000, //Max size of the grid in pixel on 
the map. Default:
200.
                        lineSymbolizer: [{ // Specific syntax. Could be apply 
to in
vector_graticule, with a "normal" syntax.
        fillColor: "yellow",
                }],
                        gratLayer: vector_graticule, // To asociate graticule 
to a vector layer
(necessary to superpose them to wms).
                });

Thanks a lot, 

Pascal.



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Graticule-and-polar-projection-tp5034005.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to