RE: [OpenMap Users] Scaling Images for imagePointUrl

From: Hudson Brian R Contr AFRL/IFSF <Brian.Hudson_at_rl.af.mil>
Date: Thu, 22 Jul 2004 14:13:15 -0000

Hey,

I would do this in the ShapeLayers prepare() method.

The prepare method is called from a separate thread (determined by the
ProjectionChangePolicy), this should help eliminate any adverse effects to
the rendering of other layers on your map.

If you are still having a problem, I would look into the
ProjectionChangePolicy for the shape layer, and make sure it calls
doPrepare() always (calls prepare on a separate thread).

Hope this helps,

Brian Hudson

-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On
Behalf Of Rubén Ruiz
Sent: Thursday, July 22, 2004 9:37 AM
To: 'Openmap-Users'
Subject: [OpenMap Users] Scaling Images for imagePointUrl


Hi all,

i`m trying to implement a re-scaling method for the images showed in every
point using the imagePointUrl Property when the mapbean is zoomed in/out.

I wonder if any of you could help me to find the correct place to do this
operation. The escaling operation is quite simple, just multiply the size of
the image by the % of scale, and return the new scaled image, but the
complexity is where to put those lines.

I've seen that the rendered objects corresponding to the images on the
screen are OMRaster objects. I'm looking for a place where my code can be
located and trying to avoid a bottle-neck in the rendering process.When the
scale changes, i've to call this method to scale the image and leave it in
its place for the rendering process..

Where's the main rendering process made for shape layers?

I'm thinking another way to make a similar scaling efect; maybe chaging on
the fly the source file of the image for other file with the scaled image.
It this case i'll need 2 or 3 iamge files and switch them on the fly
depending on the scale, is it posible?

Any help or ideas will be welcomed..
Thanks in advance,
Rubén.


--
[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"]
--
[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 Thu Jul 22 2004 - 10:16:18 EDT

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