Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@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.
A Geocoding control for MapTiler SDK, MapLibre GL JS, Leaflet and OpenLayers utilizes MapTiler Cloud Geocoding API. With this control, users of mapping application can find any place on Earth (States, Cities, Streets, Addresses, POIs, ...) down to the address level, restrict the search area to a specific country, highlight searched results on the map, autocomplete words while typing, and much more.
The component can be used as an ES module or UMD module with or without bundler.
Geocoding control is also provided as React component and Svelte component and other libraries.
Install the Geocoding control unsing npm
:
npm install --save @maptiler/geocoding-control @maptiler/sdk
Use the component in your mapping application:
import * as maptilersdk from "@maptiler/sdk";
import { GeocodingControl } from "@maptiler/geocoding-control/maptilersdk";
import "@maptiler/sdk/dist/maptiler-sdk.css";
import "@maptiler/geocoding-control/style.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);
NOTE: Get your personal MapTiler API key in the MapTiler Cloud.
In addition to the details and examples provided in this README.md
and our documentation, check out
npm 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
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.
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 1,751 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 0 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.