# Vector Map

## Introduction

&#x20;[jVectorMap](http://jvectormap.com/) uses only native browser technologies like JavaScript, CSS, HTML, SVG or VML. No Flash or any other proprietary browser plug-in is required. This allows jVectorMap to work in all modern mobile browsers.

![](/files/-LRpUvTsPokWE-uVCc1y)

## How to Setup

### **HTML Structure**

```markup
<div id="world_map_marker_1" style="height: 400px"></div>
```

## Dependency

### CSS

```markup
<!-- vector map CSS -->
<link href="vendors/vectormap/jquery-jvectormap-2.0.3.css" rel="stylesheet" type="text/css" />
```

###

### JS

```markup
<!-- Vector Maps JavaScript -->
<script src="vendors/vectormap/jquery-jvectormap-2.0.3.min.js"></script>
<script src="vendors/vectormap/jquery-jvectormap-world-mill-en.js"></script>
<script src="vendors/vectormap/jquery-jvectormap-de-merc.js"></script>
<script src="vendors/vectormap/jquery-jvectormap-es-merc.js"></script>
<script src="vendors/vectormap/jquery-jvectormap-us-aea-en.js"></script>
<script src="vendors/vectormap/jquery-jvectormap-us-lcc-en.js"></script>
<script src="vendors/vectormap/jquery-jvectormap-ru-mill.js"></script>
<script src="dist/js/vectormap-data.js"></script>
```

### Initialize Vector Map JS

```javascript
$('#world_map_marker_1').vectorMap(
{
	map: 'world_mill_en',
	backgroundColor: 'transparent',
	regionStyle : {
		initial : {
		  fill : '#eaecec'
		}
	},

	markerStyle: {
		initial: {
					r: 5,
					'fill': '#00acf0',
					'fill-opacity':1,
					'stroke': '#fff',
					'stroke-width' : 2,
					'stroke-opacity': 1
				},
		hover: {
			r: 5,
			'fill': '#00acf0',
			'fill-opacity':1,
			'stroke': '#fff',
			'stroke-width' : 2,
			'stroke-opacity': 1
		},
	},
   
	markers : [{
		latLng : [21.00, 78.00],
		name : 'INDIA : 350'
	  
	  },
	  {
		latLng : [-33.00, 151.00],
		name : 'Australia : 250'
		
	  },
	  {
		latLng : [36.77, -119.41],
		name : 'USA : 250'
	  
	  },
	  {
		latLng : [55.37, -3.41],
		name : 'UK   : 250'
	  
	  },
	  {
		latLng : [25.20, 55.27],
		name : 'UAE : 250'
	  
	  }],

	series: {
		regions: [{
			values: {
				"US": '#7fd5f7',
				"SA": '#7fd5f7',
				"AU": '#7fd5f7',
				"IN": '#7fd5f7',
				"GB": '#7fd5f7',
			},
			attribute: 'fill'
		}]
	},
	hoverOpacity: null,
	normalizeFunction: 'linear',
	zoomOnScroll: false,
	scaleColors: ['#000000', '#000000'],
	selectedColor: '#000000',
	selectedRegions: [],
	enableZoom: false,
	hoverColor: '#fff',
});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hencework.gitbook.io/pangong/maps/vector-map.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
