To do this you have to define the real world extent of your map/image then
calculate the origin and radius of your circle.

mapMaxX, mapMinX //these are the minimum and maximum values for the real
world X coordinates
imageWidth //the width of your image in pixels
mapPointX //the real world X coordinate for the origin of your circle

mapWidth = mapMaxX - mapMinX
imagePointX = imageWidth * (mapPointX - mapMinX) / mapWidth

mapRadius //the radius of your circle ie. 1 mile
imageRadius = mapRadius*imageWidth/mapWidth

---Jason---

-----Original Message-----
From: Matt Liotta [mailto:[EMAIL PROTECTED]
Sent: September 22, 2004 11:03 AM
To: CF-Talk
Subject: RE: dynamic maps (GIS and other acronyms)

The problem isn't drawing the vectors; it is drawing them in context of the
map. For example, drawing a circle with a radius of 1 mile with a center of
x/y (lat/long).

-Matt

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Beal, Jason
> Sent: Wednesday, September 22, 2004 10:55 AM
> To: CF-Talk
> Subject: RE: dynamic maps (GIS and other acronyms)
>
> Alternatives to Thomas' suggestion which is a _javascript_ library that
> draws
> vectors by using many divs or layers to represent pixels and groups of
> pixels options for drawing vectors client side include:
>
> VML - (IE 5.0+ with the VML option installed)
> SVG - (requires plugin from Adobe)
> Flash -  (requires Macromedia Flash plugin)
>
> If you want your maps to be more accessible then draw the vectors server
> side. There are graphic libraries and applications to assist you with
> this.
> A couple of suggestions would be to look at:
>
> ImageMagick - http://www.imagemagick.org/
> http://www.cit.gu.edu.au/~anthony/graphics/imagick6/draw/
> There is also a coldfusion custom tag MagickTag which wraps ImageMagick at
> http://www.alagad.com/index.cfm/name-products
>
> Java 2D API - http://java.sun.com/products/java-media/2D/
>
> Google directory - Computers > Programming > Graphics > Libraries
> http://directory.google.com/Top/Computers/Programming/Graphics/Libraries/
>
> As far as the GIS side of things it may make things easier to avoid using
> one entirely. If the only dynamic part of your maps will be the vectors
> you
> draw over them then you can just use static maps to start with. For maps
> try:
>
> GeoConnections(canada)
> http://geodiscover.cgdi.ca/gdp/index.jsp?language=en
> USGS http://edc.usgs.gov/geodata/
> Geography Network http://www.geographynetwork.com/
>
>
>
> -----Original Message-----
> From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
> Sent: September 22, 2004 9:49 AM
> To: CF-Talk
> Subject: Re: dynamic maps (GIS and other acronyms)
>
>
> On Wednesday 22 Sep 2004 03:21 am, Matt Liotta wrote:
> > What library do I use to create the vector graphics?
>
> We use one from http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
> (typicaly, this site is down atm :-)).
> We're doing basicaly the same thing - retrive a map from a map server and
> then
> draw lines over it, to represent a 'zone'.
>
> > Where do I get the
> > maps I am layering the graphics on?
>
> There are a few companies out there that will provide this as a web
> service,
>
> or you can investigate things based on OpenGIS - such as
> http://geoserver.sourceforge.net/
>
> --
> Tom Chiverton
> Advanced ColdFusion Programmer
>
> Tel: +44(0)1749 834997
> email: [EMAIL PROTECTED]
> BlueFinger Limited
> Underwood Business Park
> Wookey Hole Road, WELLS. BA5 1AF
> Tel: +44 (0)1749 834900
> Fax: +44 (0)1749 834901
> web: www.bluefinger.com
> Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
> Quay, BRISTOL. BS1 6EG.
> *** This E-mail contains confidential information for the addressee
> only. If you are not the intended recipient, please notify us
> immediately. You should not use, disclose, distribute or copy this
> communication if received in error. No binding contract will result from
> this e-mail until such time as a written document is signed on behalf of
> the company. BlueFinger Limited cannot accept responsibility for the
> completeness or accuracy of this message as it has been transmitted over
> public networks.***
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to