![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Guest
Posts: n/a
|
Hello,
first, thanks for the code. I think I found why it may not be quicker with SurfacePolylines: a new object is created for each segment. The problem is in 'visit', lines 352 to 366: Code:
SurfacePolylines pl = getSurfacePolylines(highway);
CompoundVecBuffer buf;
if (pl == null) {
buf = new CompoundVecBuffer(2, new BufferFactory.DoubleBufferFactory(), 10, 10);
} else {
buf = pl.getBuffer();
}
buf.appendSubBuffer(vecbuffer);
if (pl == null) {
pl = new SurfacePolylines(buf); <----
pl.setAttributes(attributes);
osmL.addRenderable(pl);
}
return true;
If I get time to fix this, I'll submit the new code, Cheers, Baptiste |
|
| Tags |
| layer, openstreetmap |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Plugin: My favorite Icons - Add Icons/Favorite | canosso | Add-ons & Scripts | 26 | 03-02-2010 03:06 AM |
| WW1.3.2-Plugin: Layer Edit | canosso | Add-ons & Scripts | 21 | 02-27-2010 04:37 AM |
| [Solved] How to add OpenStreetMap layer? | linnuxxy | Development Help | 37 | 02-11-2010 05:36 PM |
| Layer Priority | WWG | Add-on & Script Development | 3 | 12-08-2005 01:01 PM |
| GPX to Track and Layer, Waypoints to Layer | canosso | Add-ons & Scripts | 14 | 03-05-2005 06:37 PM |