Dennis Yavorsky wrote: > I've tryed this too: > mapContext = new DefaultMapContext(crs); > nothing changes... > > also I've tryed to pass to context.setAreaOfInterest envelope like > this: new Envelope(0.0, 0.0, 0.0, 0.0) > and this changed nothing too(Same image on the pane), but possible > explanation for this is that > JMapPane calls setAreaOfInterest on context again with his envelope > (but i don't know where JMapPane gets his envelope) It asks the data for the data bounds.
You are spending a lot of time and effort on this JMapPane is not supported; it is only an example to show you how to get something on the screen at all (and so we can show some visible results as people learn geotools for the first time). Have a look at what the paint method is doing; see how it calls the renderer etc... You can also talk to the module maintainer and ask for help. If you go to GeoTools trunk you will see some real widgets taking shape as part of unsupported/widgets-swing. Jody ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
