Oops - thought I lost that mail.

Anyway the second possibility with DHTML, if the areas are large, but
slightly irregular, would be to set a grid of squares (or rectangles) under
your display (using absolute positioning in a relatively positioned box) -
as large as you could make them but small enough so that only one set of
polygons is under each area.  You can then use the transparency idea from
the first item but instead of setting a single background color you'd set
all of the background colors for that item's portion of the grid.

When I did this the determination of the grid was very simplistic: I did it
by eye then created a new property for each grid span which indicated what
area it was under.  Then I just looped through the span collection looking
first of the existence of that property then for a match before changing
color.

It works, but depending on how irregular the objects are you can be dealing
with very small grid cells. and Flash would probably be much, much easy in
the long run.

Jim Davis



  _____  

From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Monday, September 06, 2004 1:40 AM
To: CF-Talk
Subject: RE: Displaying a dynamic map - how?

You can use Remoting in CF 5.0 - but you'd have to buy it.  There are also
several other methods to transfer information to Flash - you can use
"loadvars", pass in information as URL variables or as attributes in the
Flash call in your HTML.

Depending how irregular the patterns are you might be able to get away with
DHTML.  I've done this two ways in the past:

1) Instead of changing the color of the whole shape just pick a "highlight"
color (in this it might be the roads or the homes for example, not the whole
block).  You can then make that part of the image transparent and let a
settable background color show through.  This is nice if the shapes are
regular enough to allow for things not to overlap much.

From: Mike Kear [mailto:[EMAIL PROTECTED]
Sent: Monday, September 06, 2004 12:46 AM
To: CF-Talk
Subject: Displaying a dynamic map - how?

I have a prospective client - a real estate developer who has a
subdivision we're proposing a site for.    He wants a map of his
subdivision and wants to have the colours of the various blocks change
depending on their sale status showing in a query when the page is
called. (i.e. sold, available,  on holding deposit etc).

What's the best way to be changing the colours of the blocks, given
that they're not rectangular and all different sizes?

Before you yell FLASH REMOTING!  it's CF5.0 only, not CFMX so flash
remoting isn't an option.

IS DHTML a way to go here, with layers changing colour based on the
value of the 'status' field?   or perhaps CSS?

  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to