Thanks Richard, I have almost finished building my own based around some of the ideas from GeoMoose. I was going well until I tested with IE, which doesn't support a canvas without help. I have since found my bugs and fixed them (thanks to Google excanvas). All I have left to do is write the measurements back to the screen.
Thanks for your suggestions. Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:[EMAIL PROTECTED] http://www.napier.govt.nz | http://maps.napier.govt.nz -----Original Message----- From: Richard Greenwood [mailto:[EMAIL PROTECTED] Sent: Friday, 11 January 2008 1:38 p.m. To: Ian Tidy Cc: [email protected] Subject: Re: JavaScript Measure Tool On Jan 10, 2008 1:06 PM, Ian Tidy <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > I am updating the interface on my MapServer site and want to change my > existing PHP based measure tool to JavaScript based tool. I understand that > I need to draw on a canvas element, but I am having trouble finding > information on the canvas and finding a good example that is easy to follow. > Does anyone know of a good example that is easy enough to follow on how I > can build this tool. > > Thanks for your help... > > Cheers Ian > ______________________ > Ian Tidy > GIS Analyst / Developer > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > Phone +64-6-835-7579 Ext. 8115 > Fax +64-6-834-4195 > mailto:[EMAIL PROTECTED] > http://www.napier.govt.nz | http://maps.napier.govt.nz A lot of people approach this with a higher level library/client/framework like OpenLayers, bBox, MapBuilder.BapBender, GeoMoose, etc. If you want to build your own, all of those would obviously have some good example JavaScript. -- Richard Greenwood [EMAIL PROTECTED] www.greenwoodmap.com Scanned by Bizo Email Filter ######################################################################## ############# This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ######################################################################## ############# ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you.
