Configuring Your Map

Configuring Your Map: Your Basic Settings

Target Layer

The first thing you’re going to need is a target DIV to put the map in. Give that target an id like this.

<div id="mapsplus"></div>

In the basic map configuration there is only one setting that you’ll need to edit.

mapKey: This is your API Key available in the map customization screen or directly from us as part of your getting started kit.

Map Options

Next up we’ll specify the default map options including the zoom level and starting coordinates of the map

zoom: This is the starting zoom level, commonly 18 or 19. Range is 5-22.

starting: The starting latitude and longitude of the center of the map.

Map Tile Options

We use the customMapBounds to describe the boundaries of the box to narrow down the area within which map tiles will be requested. This will need to change for each map.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Want Us to Do It For You?

Contact Us

We are map designers, artists & developers. We built MapsPLUS to help you publish interactive maps more quickly and easily, but if you'd like to collaborate with us - we'd love to help you. We've designed maps and created interactive mapping tools for clients over the past 2 decades. If you'd like to know more about our firm - we are E2 + Associates.

Get in Touch

The best way to contact us is either by email, through our contact form or by grabbing the phone and calling Sean Young at 1 (888) 443-7446.

Service

STYLE SWITCHER

Make MapsPLUS your own. Change the color of the website below or visit our style gallery or live showcase to explore the possibilities.