Hi Johann,<div><br></div><div><div class="gmail_quote">On Mon, Jul 25, 2011 at 12:24 PM, Sorel <span dir="ltr"><<a href="mailto:johann.sorel@geomatys.fr">johann.sorel@geomatys.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
The code looks correct (don't forget to call
context.switchToDisplayCRS() or switchToDisplayCRS() to set the
system in which you are painting), if you need more examples you can
have a look at the<br>
WMS/WMTS/OSM-TMS/KML Clients modules, they all use custom subclasses
of MapLayer and GraphicBuilders.<br>
<br>
When you say it doesn't work. does it pass in the targetgraphic or
builder code ? or not at all ?<br>
</div></blockquote><div><br></div><div>When i add the builder to the layer as below, nothing is displayed not the coverage or the custom graphics. </div><div>When I comment out the targetLayer.graphicBuilders().add(builder) line, the map is displayed</div>
<div>as normal.</div><div><br></div><div><div> public void addTargetGraphicsBuilder(TargetGraphicBuilder builder) {</div><div> CoverageMapLayer targetLayer = (CoverageMapLayer) context.layers().get(0);</div><div>
targetLayer.setVisible(true);</div><div> targetLayer.graphicBuilders().add(builder);</div><div> }</div></div><div> </div><div>There are no logs to indicate an error condition....</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">- try adding the graphicbuilder before you add it in the map .
(maybe a cache issue)<br></div></blockquote><div><br></div><div>I'm trying this next...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000">
- ensure the layer is visible.<br>
<br>
<br>
johann<div><div></div><div class="h5"><br></div></div></div></blockquote><div><br></div><div>Thanks</div><div> </div></div>-- <br>Thys Meintjes<br><br><br>
</div>