
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@maptiler/geocoding-control
Advanced tools
The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.
The Javascript & TypeScript Map Control component for MapTiler Geocoding service! Easy to be integrated into any JavaScript mapping application.
The MapTiler Geocoding control implements a powerful search box in your maps or online forms, enabling your application users to find any place on Earth down to individual addresses. Use the search box control with MapTiler SDK JS (or other map libraries like Leaflet, MapLibre GL JS, OpenLayers).
📖 Documentation 📦 NPM Package 🌐 Website 🔑 Get API Key
Install the Geocoding control unsing npm, together with your map library (MapTiler SDK as an example):
npm install --save @maptiler/geocoding-control @maptiler/sdk
Use the component in your mapping application (MapTiler SDK as an example):
import * as maptilersdk from "@maptiler/sdk";
import { GeocodingControl } from "@maptiler/geocoding-control/maptilersdk";
import "@maptiler/sdk/dist/maptiler-sdk.css";
maptilersdk.config.apiKey = "YOUR_MAPTILER_API_KEY_HERE";
const map = new maptilersdk.Map({
container: "map", // id of HTML container element
});
const gc = new GeocodingControl();
map.addControl(gc);
Check out the full list of MapTiler geocoding examples
For detailed guides, API reference, and advanced examples, visit our comprehensive documentation:
Geocoding service API documentation
We love contributions from the community! Whether it's bug reports, feature requests, or pull requests, all contributions are welcome:
mainnpm install && npm run build
You will find compilation result in the dist directory.
npm install && VITE_API_KEY=YOUR_MAPTILER_API_KEY_HERE npm run dev
Alternatively, you can provide your API key via key URL param.
POI icons are served from CDN per default. If there is an requirement to serve them from a different location and the control is used in the application which is built with Web Application bundler (like Webpack or Vite) then it is necessary to do some extra configuration. Icons are bundled in the library and you can find them in node_modules/@maptiler/geocoding-control/icons. Configure your bundler and/or provide iconsBaseUrl option for the icons to be properly resolved. You can also copy icons from that directory to your public directory.
This project is licensed under the BSD 3-Clause License – see the LICENSE file for details.
The Geocoding control uses the MapTiler Geocoding API. You can use the API directly from your web or backend applications or use the API Client JS library.
With this control, users of mapping application can:
The component can be used as an ES module or UMD module with or without bundler.
Geocoding control itself is provided as a Web component which can be used with React, Svelte, and any other modern frontend library, or without any library at all.
💜 Made with love by the MapTiler team
FAQs
The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.
The npm package @maptiler/geocoding-control receives a total of 3,694 weekly downloads. As such, @maptiler/geocoding-control popularity was classified as popular.
We found that @maptiler/geocoding-control demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.