Use SVG to draw Hunan maps and svg to draw Hunan maps

Source: Internet
Author: User

Use SVG to draw Hunan maps and svg to draw Hunan maps

The project has the need to use SVG to draw Hunan maps. Now I will write my own production process for your reference.

1. First, prepare a map of Hunan (only the border lines of each city ). (The image is preferably PNG, except for the map)

2. Prepare the SVG editing tool SVGDeveloper.

3. Import the image to the SVGDeveloper editor and adjust the canvas to be consistent with the image size.

4. You can use a PEN to hook up the provinces in the map to generate PATH data in SVG.

The final code is as follows:

<? Xml version = "1.0" encoding = "UTF-8" standalone = "no"?> <! DOCTYPE svg PUBLIC "-// W3C // dtd svg 1.1 // EN "" http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-flat-20030114.dtd "> <! -- Created by SVGDeveloper 1.0 --> <svg width = "567" height = "603" version = "1.1" xmlns =" http://www.w3.org/2000/svg "Xmlns: xlink =" http://www.w3.org/1999/xlink "Fill =" none "stroke =" # FF0000 "> <image x =" 0 "y =" 0 "width =" 567 "height =" 603 "xlink: href = "C: \ Users \ Jack \ Desktop \ Hunan map c9.jpg" fill = "none" stroke = "#000000" xmlns: xlink =" http://www.w3.org/1999/xlink "Xmlns =" http://www.w3.org/2000/svg "/> <Path d =" M101 56C101 56 96 56 94 53C91 50 83 46 79 58C79 58 80 63 73 66C73 66 71 71 71 70C71 72 73 70 75C69 77 66 75 68 79C70 83 65 84 63 85C62 85 63 95 63 95C63 95 58 96 59 103C59 103 51 106 52 415c53 113 64 116 60 124C56. 625 130.75 51.11426 128.2451 52.47794 139.9118C52.6042 140.992 52.78941 142.1938 53.0407 143.5356C53.29199 144.8774 53.60938 146.3594 54 148C54 148 61 154 49 162C49 162 44 167 59 166C59 166 65 166 55 177C55 177 53 189 55 198C57 208 72 192 61 212C61 212 51 227 60 22760227 63 227 58 235C53 243 55 257 61 261C67 265 65 259 65 258C65 258 69 250 76 253C76 253 88 256 88 247C88 247 87 237 96 235C96 235 99 223 105 231C111 238 116 239 127 238C127 238 131 244 237C139 135 230 219C140 139 226 140 212C152 219 145 208 148 193C148 193 151 192 142 186C142 186 134 180 144 169C144 169 154 162 155 157C155 157 155 145 166 140C166 140 168 134 131C162 165 128 154 117 113C156 155 110 157 100 101C141 141 101 137 93C139 93 103 88 139 86C124 86 142 124 87 124 80C126 73 113 76 112 78C110 80 105 75 103 61C103 61 102 56 101 56Z "fill =" # F3CB91 "fill-opacity =" 1 "stroke =" #000000 "/> many Paths cannot be pasted here, contact me if necessary. </Svg>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.