Skip to main content

The MQ Blog

Discover easy ways to improve your business needs using MapQuest’s tools and gain insights into MapQuest use cases for various industries

New Release: MapQuest.js, v1.2

Today we are launching a point release, version v1.2, of our MapQuest.js product. This release focuses on bug fixes, adding additional options and events, as well as the introduction of a new directions control.

A few small improvements to point out include an upgrade to our Leaflet.js library dependency from 1.1.0 to 1.2.0. You can read about the changes to Leaflet here. We also fixed a bug where ad blockers were blocking our tiles in a few cases.

Geocoding Control

We refactored the geocoding control to add new options, functionality, and polish. We also added additional custom icons for cities, counties, and postal codes. There are three new events (searchahead_response, searchahead_selected, geocode_response) to further help developers use the control in harmony with other JavaScript code. We also added four additional options available to help you fine-tune how the control interacts with the map. Finally, you can now navigate the search ahead results with up and down arrow keys and use the escape key to exit the control.

Traffic Control

The traffic control now has a summary control rendered at the bottom center of the map. This allows users to individually toggle traffic flow, incident, and construction markers on and off, as well as giving a summary chart of traffic flow colors from fast to closed.

Locator Control

The locator control has a new event, current_position, that returns the user’s position object when found. It also has new options from the geolocation api: timeout, enableHighAccuracy, and maximumAge.

Directions Control

The directions control is our newest control in the MapQuest.js library. It allows drop-in routing functionality to any website. A user can enter a start and end destination by either clicking on the map or entering text input. It also has a route summary control that displays alternate routes. A route narrative is shown with turn-by-turn maneuvers. The user can click the maneuvers zoom into a particular maneuver. There are also buttons to add a destination, reverse the route, and toggle between driving and walking routes. This control is also customizable with the underlying directions layer can be styled to fit your company’s branding. The buttons can be toggled on and off, for example, if you don’t want users making multipoint routes. Finally, the input fields can be disabled, forcing users to only navigate to a fixed point, like solely your business.

If you have any feedback, bug reports, or feature suggestions, please don’t hesitate to contact us on our forums or contact us form.

Recent articles

How to Find North Without a Compass: 5 Simple Ways

Picture yourself lost in the wilderness without a compass. This scenario might seem unlikely, yet the ability to find north could prove vital for your survival at any moment. Modern technology has made us forget the ancient wisdom of direction finding. Our ancestors mastered the art of navigation using natural signs and celestial bodies to […]

Jenn Chu

How Are Maps Created: From Ancient Techniques to Cutting-Edge Technology

Maps have shaped human civilization for thousands of years and served as vital tools to explore, navigate, and understand our world. The art of creating maps has changed substantially over time. Simple drawings on clay tablets have evolved into sophisticated digital representations of Earth’s surface. These changes showcase humanity’s need for precise spatial information and […]

Jenn Chu

How to Create Accurate Noise Mapping for Your Area

Noise pollution is a growing concern in urban environments, affecting the quality of life and health of residents. As cities expand and human activities intensify, the need for accurate noise mapping becomes increasingly crucial. Noise mapping provides a visual representation of sound levels in an area, helping communities and policymakers understand and address noise-related issues […]

Jenn Chu