--- title: Vector Map docs-libs: [jsvectormap] description: Interactive guide to creating a vector map with jsVectorMap. summary: A vector map is a great way to display geographical data in an interactive and visually appealing way. Learn how to create a vector map with jsVectorMap. layout: '@layouts/DocsMdxLayout.astro' --- import Example from '@components/Example.astro' import MapVector from '@ui/MapVector.astro' import { Code } from 'astro:components' import { site } from '@shared/lib/site.ts' ## Installation To use vector maps in your project, you need to include the jsVectorMap library in your project. You can install it via npm or include it directly from a CDN. The following example demonstrates how to include the jsVectorMap library from a CDN: `} /> ## Default map Integrating the vector map into your website is straightforward. Below is a sample implementation for a world map: ## Sample demo Look at the example below to see how the vector map works with a world map. ## Markers You can add markers to the map to highlight specific locations. Below is a sample implementation for a world map with markers: ## Lines You can also draw lines on the map to represent routes or connections between different locations. Below is a sample implementation for a world map with lines: