bluefoot
bluefoot

Reputation: 10580

Draw and paint areas in images

How to draw areas in a image, based on points, like draw areas in google maps? Dynamically with javascript.
Editing: The question is about to put a map image on the page and draw an area on the top of a house, for example.

Upvotes: 4

Views: 2787

Answers (3)

Dominique
Dominique

Reputation: 414

In addition to the JavaScript solution, you could always use PHP to dynamically draw lines. Then place the newly-created image on top of the map image.

Here is a small tutorial: Drawing shapes with GD

Upvotes: 1

Eric
Eric

Reputation: 97631

Another option is to use SVG or VML (IE only). Although canvas tags are certainly the easiest.

I experimented with dynamically created SVG through javascript a while back: here's an example usage.

Upvotes: 1

Charles Stewart
Charles Stewart

Reputation: 11837

Use the canvas element.

Upvotes: 1

Related Questions