# Vector Maps

Vector maps are created using [jQuery Mapael](https://github.com/neveldo/jQuery-Mapael). it is a jQuery plugin based on raphael.js that allows you to display dynamic vector maps.

#### Step 1

Add JavaScript library to your body tag on page

```markup
<script src="assets/vendor/raphael/raphael.2.2.7.min.js"></script>
<script src="assets/vendor/mapael/jquery.mapael.min.js"></script>
```

{% hint style="info" %}
you can additional maps like one in demo by including it in js.&#x20;
{% endhint %}

#### Step 2

Add Markup

```markup
 <div class="map-container">
        <div class="map">Alternative content</div>
    </div>
```

{% hint style="warning" %}
Remember to add child to the selector with class name `.map`
{% endhint %}

#### Step 3

Initialize the map with data

```javascript
 $(".map-container").mapael({
        map : {
            name : "world_countries"
        }
    });
```

{% embed url="<https://github.com/neveldo/jQuery-Mapael>" %}


---

# 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://docs.atomui.com/maps/untitled.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.
