Making it All Work

Making it All Work: Initialization

Once you have your mapConfig all put together nicely, pass the configuration into the plugin and tell it what to do.

In this case #mapsplus is the ID of the target layer for the map as described in Step 1 with a “#” in front to let jQuery know to seach by ID for the element.

$('#mapsplus').mapsPLUS(mapConfig);

Advanced Initialization

Some people find it helpful to write some supporting functionality around the initialization of the map. Here are two examples you might find useful.

In the following case, #reset_map is the ID of a button that, when clicked, will reinitialize the map and reset the filters visual presentation.

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.