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

From: Greg Jewell <greg17_at_email.domain.hidden>
Date: Wed Jun 10 2009 - 17:16:08 EDT

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@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@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jun 10 17:21:47 2009

This archive was generated by hypermail 2.1.8 : Wed Jun 10 2009 - 17:21:47 EDT