Completely off topic, but I need help with it

2 posts / 0 new
Last post
Sam Pickard
rival's picture
Online
Mobile Archmage
Joined: 19 Mar 2009
Posts:
Completely off topic, but I need help with it

I'm building a location-based advertising solution for a client. The advertisers have a self-service portal where they can manage their campaigns. I need to be able to set a centre point and a radius showing the area the advert can be shown in on Google Maps/Bing/Yahoo!/Cloudmade/Whatever maps. I can put a marker on a map, and I can even draw a circle. What I don't know how to do is to have a circle with some sort of marker I can drag in and out, making the circle bigger or smaller. There must be a standard bit of code to do it, but I've no idea where it might be. Has anyone done anything like this?

Thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fredrik Eldh
Fredrik's picture
Offline
Mobile Sorcerer
Joined: 16 Feb 2009
Posts:

WYSIWYG GUI for changing the size of a circle, eh? I think a program like Inkscape would have an example for you, and I think it would go something like this:

Pick a point on the circle (perhaps the right-most edge) and draw a little square there. Then make it so the user can use the mouse to drag-and-drop the square. While dragging, the circle would change size so that the square retains its position on the edge of the circle.