hi all
ok, I think I have a pretty good work around. parseKml works just fine
on subsets of Kml (I thought it needed an entire kml doc) so you can
use it to insert objects into your placemark geometry. I changed the
example above to include the hybrid approach (half api, half parseKml)
and it seems to work really well (please someone correct me if I'm
wrong)
I converted our geometry layer to use this technique and now there
doesn't seem to be any delays when adding/interacting with large
geometries. i guess this is the functional equivalent of "AddRange" so
I'm happy
var geo = ge.parseKml(kmlOfSomeGeometry);
var pm = ge.createPlacemark("");
pm.setGeometry(geo);
ge.getFeatures().appendChild(pm);
var cnt =
pm.getGeometry().getOuterBoundary().getCoordinates().getLength();
console.log("verts " + cnt); //geometry available via api, sweet
http://12.144.53.37/test/TestPolygon.html
cheers
brian
On Jun 25, 8:56 am, bFlood wrote:
> hi mano
>
> it's not really a workaround, it was more for comparison. If you could
> get the placemark's properties after the fetchKml, it would be
> somewhat of a workaround but I think there is an issue with that as
> well.
>
>
http://groups.google.com/group/google-earth-browser-plugin/browse_thr...
>
> I think an Add/Update/Delete Range on KMLCoordArray would be better.
>
> On Jun 25, 7:52 am, ManoM wrote:
>
>
>
> > Hi sylehc,
>
> > I can confirm the problem, and we're looking into it. Have you tried
> > brian's of workaround of creating the KML and parsing it? It seems to
> > be considerably faster:
http://12.144.53.37/test/TestPolygon.html
>
> > Mano
>
> > On Jun 24, 9:04 am, sylehc wrote:
>
> > > Hi ManoM,
>
> > > you can find the page at the following address:
http://srrs.chelys.itandselectany thumbnail on the left panel.
> > - Show quoted text -- Hide quoted text -