background preloader

Cartes interactives

Facebook Twitter

HTML5 Canvas Path Mouseover Tutorial. HTML5 polygon mouse over. Riskmap.filkor.org. Create an interactive map using Javascript and HTML5 Canvas - filkor.org Writings. I will show you how to create a custom interactive map using the HTML5 <canvas> element. You can check the result: DEMO here The map size on the demo is 1920x1080 pixels. Creating simple interactive maps is not so hard, you can see examples here, or here.

But when you need more customization, like different territory textures, shadows, special font-styles…etc, well then you have to use different tools for this job. What you will need: Vector graphics editor to draw the base paths for the map (I used Illustrator)A general graphics editor like Photoshop, we will import the paths from Illustrator to hereKineticJS, a Javascript library, for the canvas manipulationA little Javacript knowledge Draw the base paths with Illustrator First we need to draw the paths for the map. The drawing process looks like this: When you are done the groups will look like: A few notes: when you are drawing, make sure that the territories are not overlapping each other.

Save the paths as SVG and parse the path data. Raphaël—JavaScript Library. Carte de France cliquable en HTML5 / SVG. Créer une carte de France cliquable en HTML5 / SVG. | Sylvain Prevost Design Webstudio.