Re: [OpenMap Users] A "Bermuda point" and setting selectability

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 10 Jun 2009 22:09:07 -0400

If you are using the default constructor, you'll also have to set the
render type to OMGraphic.RENDERTYPE_LATLON. Although you'd have to do
that for all OMRasterObjects regardless of coordinate values. I just
tested that, and I was able to see an OMRaster set to 0,0.

- Don




On Jun 10, 2009, at 5:16 PM, Greg Jewell wrote:

> That's an interesting idea about the widening/narrowing of the types
> for the coordinates. In this case, though, I am using the default
> constructor for the raster, and setting the image and coordinates
> separately. I am explicitly calling raster.setLat() and
> raster.setLon().
>
> Thanks for the tip on the isSelectable() and isHighlightable
> methods(). I'll take a look at those and see whether they help on
> my vague lists too.
>
>
> Greg
>
>
> On Wed, Jun 10, 2009 at 4:27 PM, Don Dietrick <dietrick_at_bbn.com>
> wrote:
> I'm wondering of 0, 0 is getting interpreted as pixels. Are you
> passing 0f, 0f or 0.0, 0.0 so they get interpreted as floats/doubles
> and therefore the image gets placed as coordinates?
>
> As to your second question, there's a layer method
> isSelectable(OMGraphic) and isHighlightable(OMGraphic) that you can
> override and return true/false, depending on what kind of behavior
> you want for different OMGraphics.
>
> - Don
>
>
> On Jun 10, 2009, at 9:05 AM, Greg Jewell wrote:
>
> Hello,
>
> I apparently have a "Bermuda point" in my map. In my testing, I
> have attempted to add an OMRaster (png image) at coordinates lat=0
> and lon=0. When I do this, though, the image never actually appears
> on the map. If I change the coordinates even the slightest bit so
> that they are not 0, 0, the image appears as expected. Am I doing
> something silly here?
>
> Also, is there a way to set whether an indivdual OMGraphic is
> selectable in gesture mode? Essentially, I don't want OMText
> objects to be selectable. These objects may either be "standalone"
> or labels for other objects.
>
>
> Thanks,
> Greg
>
>

--
[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 Wed Jun 10 2009 - 22:09:39 EDT

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