Yes, I was just about to suggest a label cache issue but Jody beat me to it. I thought the cache should be cleared for you in this case but don't have the code in front of me at the moment to check. You can try retrieving a reference to the label cache and clearing it "manually".
Michael On 10 April 2013 15:51, Jody Garnett <[email protected]> wrote: > Interesting, well the label cache is responsible for collecting all the > labels during a rendering run. Put in some break points and see if: > a) Is it being called twice? > b) Did it just remember the labels "from last time"? try clearing it after > add/removing a layer as a fix. > > -- > Jody Garnett > > On Wednesday, 10 April 2013 at 2:17 PM, Boided wrote: > > Can anyone make out what the issue could be? i am stuck over this :( > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/AddLayer-method-gives-problem-tp5044456p5045685.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
