Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@langateam/leaflet-geojson-autocomplete
Advanced tools
Leaflet Autocomplete For Remote Searching with GeoJSON Services.
Leaflet Autocomplete For Remote Searching with GeoJSON Services.
This plug-in runs with classical autocomplete logic. Users type in search box and plug-in sends ajax request to your geojson service.
It requires Leafletjs and JQuery. It has beeen tested with Leaflet 0.7.3 and JQuery 1.11.3
#Example Request and Response
When users type 'Ankara' in search box. Plug-in sends a ajax request with 3 parameters like the following.
http://yourGeoJsonSearchAddress?search=Ankara&limit=10&offset=0 (Parameters is explained in Options Section)
Your response should be valid GeoJson like the following
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
32.84,
39.92
]
},
"properties": {
"popupContent": "Content seen in Popup",
"title": "Title seen in Autocomplete",
"description": "Additional information seen in Autocomplete",
"image": "example.png"
}
}
]
}
#Test your service response
Your geojson features must have 4 properties
#Usage
Just add
<div id="searchContainer"></div>
tag to your html and
var options = {
geojsonServiceAddress: "http://yourgeojsonsearchaddress"
};
$("#searchContainer").GeoJsonAutocomplete(options);
to your window.onload function.
#Options
#Paging Mode If your geojson service supports paging (accepts offset parameter), you can activate paging with pagingActive parameter in options. When you type any text and press Enter(or click Search Button), Autocomplete runs with paging mode. In paging mode Autocomplete draw all geometries on map in a page.
#License
Leaflet.GeoJSONAutocomplete is free software, and may be redistributed under the MIT License.
Please let me know your comments and usage.
Thanks to CitySurf to inspire and support this plugin.
FAQs
Leaflet Autocomplete For Remote Searching with GeoJSON Services.
The npm package @langateam/leaflet-geojson-autocomplete receives a total of 2 weekly downloads. As such, @langateam/leaflet-geojson-autocomplete popularity was classified as not popular.
We found that @langateam/leaflet-geojson-autocomplete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.