[OpenMap Users] Can't get LocationLayer repaint to work

From: mtrewartha <mdtrewar_at_gmail.com>
Date: Tue, 21 Dec 2010 11:50:44 -0800 (PST)

I'm using a LocationLayer that's fed by a modified CSVLocationHandler that
fits my needs. Inside one of the location handler's methods, I have a bit of
code that looks like the following:

LocationLayer locLayer = getLayer();
Location loc = createLocation(...);
quadtree.put(loc.lat, loc.lon, loc);
locLayer.repaint();

However, my new location doesn't show up on the map until there's a
projection change (zoom, pan, etc...).

I've searched like crazy for this and it sounds like the OMGraphics for the
layer need to be regenerated using the new projection. So I tried calling
doPrepare() instead, but then my location didn't even show up after the
projection change. I've also tried getting the graphics list from the layer
and calling generate on each individual OMGraphic using the layer's
projection. Same result as doPrepare()... what am I doing wrong?
-- 
View this message in context: http://old.nabble.com/Can%27t-get-LocationLayer-repaint-to-work-tp30508737p30508737.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Dec 21 2010 - 14:52:03 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:10 EDT