This project has moved and is read-only. For the latest updates, please go here.

Using Sharpmap NorthArrow and ScaleBar in WMS layers

Topics: SharpMap Project, SharpMap v0.9 / v1.x, SharpMap v2.0, Web Controls, WinForms Controls
Mar 22, 2012 at 2:01 PM

I'm trying to use SharpMap.Rendering.Decoration.NorthArrow and ScaleBar in Web WMS project, as result decorations render at every tile (9 times) -))

Openlayers controls are not suitable.

How can I resolve this problem?

Apr 15, 2012 at 8:09 PM

Modify the openlayers layer to untiled: see this example from the OL api documentation:


var wms = new OpenLayers.Layer.WMS("NASA Global Mosaic",
layers: "modis,global_mosaic",
transparent: true
}, {
opacity: 0.5,
singleTile: true

Apr 16, 2012 at 5:34 AM

Hi, PeaceNlove!

Thanks for reply, but untiled layer is unacceptable :(