@maptiler/geocoding-control 2.1.7 β 3.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CODE_OF_CONDUCT.md +46 -0
- package/CONTRIBUTING.md +72 -0
- package/README.md +115 -43
- package/SECURITY.md +16 -0
- package/dist/index.js +860 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.js +263 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/leaflet.public.js +1251 -0
- package/dist/leaflet.public.js.map +1 -0
- package/dist/leaflet.public.umd.js +276 -0
- package/dist/leaflet.public.umd.js.map +1 -0
- package/dist/maplibregl.js +1275 -0
- package/dist/maplibregl.js.map +1 -0
- package/dist/maplibregl.umd.js +276 -0
- package/dist/maplibregl.umd.js.map +1 -0
- package/dist/maptilersdk.js +1283 -0
- package/dist/maptilersdk.js.map +1 -0
- package/dist/maptilersdk.umd.js +276 -0
- package/dist/maptilersdk.umd.js.map +1 -0
- package/dist/src/components/clear-icon.d.ts +10 -0
- package/dist/src/components/fail-icon.d.ts +10 -0
- package/dist/src/components/loading-icon.d.ts +10 -0
- package/dist/src/components/marker.d.ts +10 -0
- package/dist/src/components/reverse-geocoding-icon.d.ts +10 -0
- package/dist/src/components/search-icon.d.ts +10 -0
- package/dist/src/controls/base-control.d.ts +44 -0
- package/dist/src/controls/leaflet-control.d.ts +27 -0
- package/dist/src/controls/leaflet-events.d.ts +42 -0
- package/dist/src/controls/leaflet-options.d.ts +84 -0
- package/dist/src/controls/maplibregl-control.d.ts +34 -0
- package/dist/src/controls/maplibregl-events.d.ts +44 -0
- package/dist/src/controls/maplibregl-options.d.ts +104 -0
- package/dist/src/controls/maptilersdk-control.d.ts +7 -0
- package/dist/src/controls/maptilersdk-events.d.ts +2 -0
- package/dist/src/controls/maptilersdk-options.d.ts +10 -0
- package/dist/src/controls/openlayers-control.d.ts +35 -0
- package/dist/src/controls/openlayers-events.d.ts +43 -0
- package/dist/src/controls/openlayers-options.d.ts +83 -0
- package/dist/src/geocoder/geocoder-events.d.ts +46 -0
- package/dist/src/geocoder/geocoder-feature-item.d.ts +22 -0
- package/{svelte/types.d.ts β dist/src/geocoder/geocoder-options.d.ts} +23 -143
- package/dist/src/geocoder/geocoder.d.ts +113 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/leaflet.public.d.ts +7 -0
- package/dist/src/maplibregl.d.ts +7 -0
- package/dist/src/maptilersdk.d.ts +7 -0
- package/dist/src/openlayers.public.d.ts +7 -0
- package/dist/src/types.d.ts +46 -0
- package/dist/src/utils/geo-utils.d.ts +6 -0
- package/dist/src/utils/mask.d.ts +2 -0
- package/dist/src/utils/proximity.d.ts +2 -0
- package/package.json +84 -112
- package/MapLibreBasedGeocodingControl.d.ts +0 -3072
- package/geo-coordinates-parser.t.d.ts +0 -8
- package/geoUtils.d.ts +0 -3
- package/leaflet-controller.d.ts +0 -12
- package/leaflet-controller.js +0 -2475
- package/leaflet-controller.js.map +0 -1
- package/leaflet-controller.umd.js +0 -2
- package/leaflet-controller.umd.js.map +0 -1
- package/leaflet.d.ts +0 -131
- package/leaflet.js +0 -5082
- package/leaflet.js.map +0 -1
- package/leaflet.umd.js +0 -14
- package/leaflet.umd.js.map +0 -1
- package/maplibregl-controller.d.ts +0 -19
- package/maplibregl-controller.js +0 -2418
- package/maplibregl-controller.js.map +0 -1
- package/maplibregl-controller.umd.js +0 -2
- package/maplibregl-controller.umd.js.map +0 -1
- package/maplibregl.d.ts +0 -2509
- package/maplibregl.js +0 -5142
- package/maplibregl.js.map +0 -1
- package/maplibregl.umd.js +0 -14
- package/maplibregl.umd.js.map +0 -1
- package/maptilersdk.d.ts +0 -2504
- package/maptilersdk.js +0 -5152
- package/maptilersdk.js.map +0 -1
- package/maptilersdk.umd.js +0 -14
- package/maptilersdk.umd.js.map +0 -1
- package/mask.d.ts +0 -2
- package/openlayers-controller.d.ts +0 -15
- package/openlayers-controller.js +0 -2174
- package/openlayers-controller.js.map +0 -1
- package/openlayers-controller.umd.js +0 -2
- package/openlayers-controller.umd.js.map +0 -1
- package/openlayers.d.ts +0 -109
- package/openlayers.js +0 -5045
- package/openlayers.js.map +0 -1
- package/openlayers.umd.js +0 -14
- package/openlayers.umd.js.map +0 -1
- package/proximity.d.ts +0 -2
- package/react.d.ts +0 -45
- package/react.js +0 -2795
- package/react.js.map +0 -1
- package/react.umd.js +0 -14
- package/react.umd.js.map +0 -1
- package/style.css +0 -1
- package/svelte/ClearIcon.svelte +0 -12
- package/svelte/ClearIcon.svelte.d.ts +0 -25
- package/svelte/FailIcon.svelte +0 -12
- package/svelte/FailIcon.svelte.d.ts +0 -25
- package/svelte/FeatureItem.svelte +0 -246
- package/svelte/FeatureItem.svelte.d.ts +0 -26
- package/svelte/GeocodingControl.svelte +0 -921
- package/svelte/GeocodingControl.svelte.d.ts +0 -105
- package/svelte/LoadingIcon.svelte +0 -40
- package/svelte/LoadingIcon.svelte.d.ts +0 -25
- package/svelte/MapLibreBasedGeocodingControl.d.ts +0 -3072
- package/svelte/MapLibreBasedGeocodingControl.js +0 -210
- package/svelte/MarkerIcon.svelte +0 -71
- package/svelte/MarkerIcon.svelte.d.ts +0 -18
- package/svelte/ReverseGeocodingIcon.svelte +0 -12
- package/svelte/ReverseGeocodingIcon.svelte.d.ts +0 -25
- package/svelte/SearchIcon.svelte +0 -26
- package/svelte/SearchIcon.svelte.d.ts +0 -25
- package/svelte/geo-coordinates-parser.t.d.ts +0 -8
- package/svelte/geo-coordinates-parser.t.js +0 -1
- package/svelte/geoUtils.d.ts +0 -3
- package/svelte/geoUtils.js +0 -18
- package/svelte/info.json +0 -1
- package/svelte/leaflet-controller.d.ts +0 -12
- package/svelte/leaflet-controller.js +0 -274
- package/svelte/leaflet.d.ts +0 -131
- package/svelte/leaflet.js +0 -116
- package/svelte/maplibregl-controller.d.ts +0 -19
- package/svelte/maplibregl-controller.js +0 -279
- package/svelte/maplibregl.d.ts +0 -2509
- package/svelte/maplibregl.js +0 -17
- package/svelte/maptilersdk.d.ts +0 -2504
- package/svelte/maptilersdk.js +0 -32
- package/svelte/mask.d.ts +0 -2
- package/svelte/mask.js +0 -54
- package/svelte/openlayers-controller.d.ts +0 -15
- package/svelte/openlayers-controller.js +0 -283
- package/svelte/openlayers.d.ts +0 -109
- package/svelte/openlayers.js +0 -178
- package/svelte/proximity.d.ts +0 -2
- package/svelte/proximity.js +0 -60
- package/svelte/react.d.ts +0 -45
- package/svelte/react.js +0 -106
- package/svelte/types.js +0 -1
- package/svelte/vanilla.d.ts +0 -61
- package/svelte/vanilla.js +0 -101
- package/svelte/vite-env.d.ts +0 -2
- package/types.d.ts +0 -391
- package/vanilla.d.ts +0 -61
- package/vanilla.js +0 -2799
- package/vanilla.js.map +0 -1
- package/vanilla.umd.js +0 -14
- package/vanilla.umd.js.map +0 -1
- /package/{icons β dist/icons}/10pin.svg +0 -0
- /package/{icons β dist/icons}/9pin.svg +0 -0
- /package/{icons β dist/icons}/advertising_column.svg +0 -0
- /package/{icons β dist/icons}/aerodrome.svg +0 -0
- /package/{icons β dist/icons}/alcohol.svg +0 -0
- /package/{icons β dist/icons}/alpine_hut.svg +0 -0
- /package/{icons β dist/icons}/amusement_arcade.svg +0 -0
- /package/{icons β dist/icons}/amusement_park.svg +0 -0
- /package/{icons β dist/icons}/apartment.svg +0 -0
- /package/{icons β dist/icons}/archaeological_site.svg +0 -0
- /package/{icons β dist/icons}/area.svg +0 -0
- /package/{icons β dist/icons}/art.svg +0 -0
- /package/{icons β dist/icons}/arts_centre.svg +0 -0
- /package/{icons β dist/icons}/artwork.svg +0 -0
- /package/{icons β dist/icons}/audioguide.svg +0 -0
- /package/{icons β dist/icons}/bag.svg +0 -0
- /package/{icons β dist/icons}/beauty.svg +0 -0
- /package/{icons β dist/icons}/bed.svg +0 -0
- /package/{icons β dist/icons}/bell_tower.svg +0 -0
- /package/{icons β dist/icons}/beverages.svg +0 -0
- /package/{icons β dist/icons}/bicycle_repair_station.svg +0 -0
- /package/{icons β dist/icons}/biergarten.svg +0 -0
- /package/{icons β dist/icons}/bird_hide.svg +0 -0
- /package/{icons β dist/icons}/boat_rental.svg +0 -0
- /package/{icons β dist/icons}/bookmaker.svg +0 -0
- /package/{icons β dist/icons}/books.svg +0 -0
- /package/{icons β dist/icons}/bowl.svg +0 -0
- /package/{icons β dist/icons}/bowling_alley.svg +0 -0
- /package/{icons β dist/icons}/bunker.svg +0 -0
- /package/{icons β dist/icons}/bureau_de_change.svg +0 -0
- /package/{icons β dist/icons}/bus_station.svg +0 -0
- /package/{icons β dist/icons}/bust.svg +0 -0
- /package/{icons β dist/icons}/camping.svg +0 -0
- /package/{icons β dist/icons}/car_parts.svg +0 -0
- /package/{icons β dist/icons}/car_wash.svg +0 -0
- /package/{icons β dist/icons}/caravan_park.svg +0 -0
- /package/{icons β dist/icons}/carpet.svg +0 -0
- /package/{icons β dist/icons}/cattle_grid.svg +0 -0
- /package/{icons β dist/icons}/cave_entrance.svg +0 -0
- /package/{icons β dist/icons}/chalet.svg +0 -0
- /package/{icons β dist/icons}/charity.svg +0 -0
- /package/{icons β dist/icons}/chemist.svg +0 -0
- /package/{icons β dist/icons}/chimney.svg +0 -0
- /package/{icons β dist/icons}/church.svg +0 -0
- /package/{icons β dist/icons}/city_gate.svg +0 -0
- /package/{icons β dist/icons}/clinic.svg +0 -0
- /package/{icons β dist/icons}/clothes.svg +0 -0
- /package/{icons β dist/icons}/coffee.svg +0 -0
- /package/{icons β dist/icons}/community_centre.svg +0 -0
- /package/{icons β dist/icons}/computer.svg +0 -0
- /package/{icons β dist/icons}/consulate.svg +0 -0
- /package/{icons β dist/icons}/copyshop.svg +0 -0
- /package/{icons β dist/icons}/cosmetics.svg +0 -0
- /package/{icons β dist/icons}/courthouse.svg +0 -0
- /package/{icons β dist/icons}/crane.svg +0 -0
- /package/{icons β dist/icons}/dairy.svg +0 -0
- /package/{icons β dist/icons}/deli.svg +0 -0
- /package/{icons β dist/icons}/department_store.svg +0 -0
- /package/{icons β dist/icons}/diy.svg +0 -0
- /package/{icons β dist/icons}/electronics.svg +0 -0
- /package/{icons β dist/icons}/embankment.svg +0 -0
- /package/{icons β dist/icons}/embassy.svg +0 -0
- /package/{icons β dist/icons}/excrement_bags.svg +0 -0
- /package/{icons β dist/icons}/fabric.svg +0 -0
- /package/{icons β dist/icons}/farmyard.svg +0 -0
- /package/{icons β dist/icons}/ferry.svg +0 -0
- /package/{icons β dist/icons}/firepit.svg +0 -0
- /package/{icons β dist/icons}/firestation.svg +0 -0
- /package/{icons β dist/icons}/fishing.svg +0 -0
- /package/{icons β dist/icons}/fitness.svg +0 -0
- /package/{icons β dist/icons}/ford.svg +0 -0
- /package/{icons β dist/icons}/fort.svg +0 -0
- /package/{icons β dist/icons}/fortress.svg +0 -0
- /package/{icons β dist/icons}/full-height_turnstile.svg +0 -0
- /package/{icons β dist/icons}/generator_wind.svg +0 -0
- /package/{icons β dist/icons}/golf_pin.svg +0 -0
- /package/{icons β dist/icons}/greengrocer.svg +0 -0
- /package/{icons β dist/icons}/guest_house.svg +0 -0
- /package/{icons β dist/icons}/helipad.svg +0 -0
- /package/{icons β dist/icons}/hifi.svg +0 -0
- /package/{icons β dist/icons}/hostel.svg +0 -0
- /package/{icons β dist/icons}/hotel.svg +0 -0
- /package/{icons β dist/icons}/housenumber.svg +0 -0
- /package/{icons β dist/icons}/houseware.svg +0 -0
- /package/{icons β dist/icons}/hunting_stand.svg +0 -0
- /package/{icons β dist/icons}/interior_decoration.svg +0 -0
- /package/{icons β dist/icons}/internet_cafe.svg +0 -0
- /package/{icons β dist/icons}/kindergarten.svg +0 -0
- /package/{icons β dist/icons}/kissing_gate.svg +0 -0
- /package/{icons β dist/icons}/manor.svg +0 -0
- /package/{icons β dist/icons}/map.svg +0 -0
- /package/{icons β dist/icons}/marker_reverse.svg +0 -0
- /package/{icons β dist/icons}/marker_selected.svg +0 -0
- /package/{icons β dist/icons}/marker_unselected.svg +0 -0
- /package/{icons β dist/icons}/marketplace.svg +0 -0
- /package/{icons β dist/icons}/massage.svg +0 -0
- /package/{icons β dist/icons}/mast.svg +0 -0
- /package/{icons β dist/icons}/mast_communications.svg +0 -0
- /package/{icons β dist/icons}/mast_lighting.svg +0 -0
- /package/{icons β dist/icons}/medical_supply.svg +0 -0
- /package/{icons β dist/icons}/memorial.svg +0 -0
- /package/{icons β dist/icons}/miniature_golf.svg +0 -0
- /package/{icons β dist/icons}/motel.svg +0 -0
- /package/{icons β dist/icons}/mountain_range.svg +0 -0
- /package/{icons β dist/icons}/multifaith.svg +0 -0
- /package/{icons β dist/icons}/musical_instrument.svg +0 -0
- /package/{icons β dist/icons}/newsagent.svg +0 -0
- /package/{icons β dist/icons}/nightclub.svg +0 -0
- /package/{icons β dist/icons}/ocean.svg +0 -0
- /package/{icons β dist/icons}/office.svg +0 -0
- /package/{icons β dist/icons}/outdoor_seating.svg +0 -0
- /package/{icons β dist/icons}/palace.svg +0 -0
- /package/{icons β dist/icons}/parcel_locker.svg +0 -0
- /package/{icons β dist/icons}/parking_space.svg +0 -0
- /package/{icons β dist/icons}/parking_tickets.svg +0 -0
- /package/{icons β dist/icons}/pet.svg +0 -0
- /package/{icons β dist/icons}/photo.svg +0 -0
- /package/{icons β dist/icons}/picnic.svg +0 -0
- /package/{icons β dist/icons}/plaque.svg +0 -0
- /package/{icons β dist/icons}/poi.svg +0 -0
- /package/{icons β dist/icons}/post_box.svg +0 -0
- /package/{icons β dist/icons}/post_office.svg +0 -0
- /package/{icons β dist/icons}/postal_code.svg +0 -0
- /package/{icons β dist/icons}/pub.svg +0 -0
- /package/{icons β dist/icons}/public_bath.svg +0 -0
- /package/{icons β dist/icons}/public_bookcase.svg +0 -0
- /package/{icons β dist/icons}/public_building.svg +0 -0
- /package/{icons β dist/icons}/public_transport_tickets.svg +0 -0
- /package/{icons β dist/icons}/reverse.svg +0 -0
- /package/{icons β dist/icons}/river.svg +0 -0
- /package/{icons β dist/icons}/road.svg +0 -0
- /package/{icons β dist/icons}/saddle.svg +0 -0
- /package/{icons β dist/icons}/sauna.svg +0 -0
- /package/{icons β dist/icons}/sea.svg +0 -0
- /package/{icons β dist/icons}/second_hand.svg +0 -0
- /package/{icons β dist/icons}/shintoist.svg +0 -0
- /package/{icons β dist/icons}/shoe.svg +0 -0
- /package/{icons β dist/icons}/shower.svg +0 -0
- /package/{icons β dist/icons}/shrine.svg +0 -0
- /package/{icons β dist/icons}/sikhist.svg +0 -0
- /package/{icons β dist/icons}/slipway.svg +0 -0
- /package/{icons β dist/icons}/snowmobile.svg +0 -0
- /package/{icons β dist/icons}/social_facility.svg +0 -0
- /package/{icons β dist/icons}/sports.svg +0 -0
- /package/{icons β dist/icons}/sprite.json +0 -0
- /package/{icons β dist/icons}/sprite.png +0 -0
- /package/{icons β dist/icons}/sprite@2x.json +0 -0
- /package/{icons β dist/icons}/sprite@2x.png +0 -0
- /package/{icons β dist/icons}/stationery.svg +0 -0
- /package/{icons β dist/icons}/stile.svg +0 -0
- /package/{icons β dist/icons}/stone.svg +0 -0
- /package/{icons β dist/icons}/storage_tank.svg +0 -0
- /package/{icons β dist/icons}/stream.svg +0 -0
- /package/{icons β dist/icons}/street.svg +0 -0
- /package/{icons β dist/icons}/supermarket.svg +0 -0
- /package/{icons β dist/icons}/tea.svg +0 -0
- /package/{icons β dist/icons}/telescope_dish.svg +0 -0
- /package/{icons β dist/icons}/telescope_dome.svg +0 -0
- /package/{icons β dist/icons}/ticket.svg +0 -0
- /package/{icons β dist/icons}/tobacco.svg +0 -0
- /package/{icons β dist/icons}/tower_cantilever_communication.svg +0 -0
- /package/{icons β dist/icons}/tower_cooling.svg +0 -0
- /package/{icons β dist/icons}/tower_dish.svg +0 -0
- /package/{icons β dist/icons}/tower_dome.svg +0 -0
- /package/{icons β dist/icons}/tower_generic.svg +0 -0
- /package/{icons β dist/icons}/tower_lattice.svg +0 -0
- /package/{icons β dist/icons}/tower_lattice_communication.svg +0 -0
- /package/{icons β dist/icons}/tower_lattice_lighting.svg +0 -0
- /package/{icons β dist/icons}/tower_lighting.svg +0 -0
- /package/{icons β dist/icons}/townhall.svg +0 -0
- /package/{icons β dist/icons}/toys.svg +0 -0
- /package/{icons β dist/icons}/trade.svg +0 -0
- /package/{icons β dist/icons}/traffic_light.svg +0 -0
- /package/{icons β dist/icons}/train_station.svg +0 -0
- /package/{icons β dist/icons}/travel_agency.svg +0 -0
- /package/{icons β dist/icons}/tyres.svg +0 -0
- /package/{icons β dist/icons}/university.svg +0 -0
- /package/{icons β dist/icons}/variety_store.svg +0 -0
- /package/{icons β dist/icons}/vehicle_inspection.svg +0 -0
- /package/{icons β dist/icons}/vending_machine.svg +0 -0
- /package/{icons β dist/icons}/video.svg +0 -0
- /package/{icons β dist/icons}/video_games.svg +0 -0
- /package/{icons β dist/icons}/waste_disposal.svg +0 -0
- /package/{icons β dist/icons}/water_well.svg +0 -0
- /package/{icons β dist/icons}/waterfall.svg +0 -0
- /package/{icons β dist/icons}/wilderness_hut.svg +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
## Our Standards
|
|
8
|
+
|
|
9
|
+
Examples of behavior that contributes to creating a positive environment include:
|
|
10
|
+
|
|
11
|
+
- Using welcoming and inclusive language
|
|
12
|
+
- Being respectful of differing viewpoints and experiences
|
|
13
|
+
- Gracefully accepting constructive criticism
|
|
14
|
+
- Focusing on what is best for the community
|
|
15
|
+
- Showing empathy towards other community members
|
|
16
|
+
|
|
17
|
+
Examples of unacceptable behavior by participants include:
|
|
18
|
+
|
|
19
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
|
|
20
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
21
|
+
- Public or private harassment
|
|
22
|
+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
|
|
23
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
24
|
+
|
|
25
|
+
## Our Responsibilities
|
|
26
|
+
|
|
27
|
+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
|
28
|
+
|
|
29
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
+
|
|
31
|
+
## Scope
|
|
32
|
+
|
|
33
|
+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
|
34
|
+
|
|
35
|
+
## Enforcement
|
|
36
|
+
|
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the MapTiler support team at `support [at] maptiler.com` . The support team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The support team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
|
38
|
+
|
|
39
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the leadership.
|
|
40
|
+
|
|
41
|
+
## Attribution
|
|
42
|
+
|
|
43
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version]
|
|
44
|
+
|
|
45
|
+
[homepage]: https://contributor-covenant.org
|
|
46
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
## Contributing
|
|
2
|
+
|
|
3
|
+
Thank you for considering contributing to MapTiler Geocoding Control package. It's people
|
|
4
|
+
like you that make it to great tool.
|
|
5
|
+
|
|
6
|
+
### Where do I go from here?
|
|
7
|
+
|
|
8
|
+
If you've noticed a bug or have a feature request, [make one](https://github.com/maptiler/maptiler-geocoding-control/issues/new/choose)! It's
|
|
9
|
+
generally best if you get confirmation of your bug or approval for your feature
|
|
10
|
+
request this way before starting to code.
|
|
11
|
+
|
|
12
|
+
If you have a general question about MapTiler Geocoding Control, you can reach out to the
|
|
13
|
+
[MapTiler documentation portal](https://documentation.maptiler.com/hc/en-us/search?query=geocoding)
|
|
14
|
+
or contact [our support](https://documentation.maptiler.com/hc/en-us/requests/new), the issue tracker is only for bugs and feature requests.
|
|
15
|
+
|
|
16
|
+
### Fork & create a branch
|
|
17
|
+
|
|
18
|
+
If this is something you think you can fix, then [create the fork](https://github.com/maptiler/maptiler-geocoding-control/fork) and create
|
|
19
|
+
a branch with a descriptive name.
|
|
20
|
+
|
|
21
|
+
A good branch name would be (where issue #325 is the ticket you're working on):
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
git checkout -b 325-add-poi-filter
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Get the test suite running
|
|
28
|
+
|
|
29
|
+
Make sure you're using a recent version of NodeJS.
|
|
30
|
+
|
|
31
|
+
Install the development dependencies:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
npm install
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Then run the development mode, make sure, you export the [MapTiler Key](https://docs.maptiler.com/cloud/api/authentication-key/) as environment variable
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
VITE_API_KEY=YOUR_MAPTILER_API_KEY_HERE npm run dev
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Implement your fix or feature
|
|
44
|
+
|
|
45
|
+
At this point, you're ready to make your changes! Feel free to ask for help;
|
|
46
|
+
everyone is a beginner at first :smile_cat:
|
|
47
|
+
|
|
48
|
+
### Make a Pull Request
|
|
49
|
+
|
|
50
|
+
At this point, you should switch back to your master branch and make sure it's
|
|
51
|
+
up to date with MapTiler Geocoding Control main branch:
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
git remote add upstream git@github.com:maptiler/maptiler-geocoding-control.git
|
|
55
|
+
git checkout main
|
|
56
|
+
git pull upstream main
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Then update your feature branch from your local copy of master, and push it!
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
git checkout 325-add-poi-filter
|
|
63
|
+
git rebase main
|
|
64
|
+
git push --set-upstream origin 325-add-poi-filter
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Finally, go to GitHub and [make a Pull Request](https://github.com/maptiler/maptiler-geocoding-control/compare)
|
|
68
|
+
|
|
69
|
+
## Final word
|
|
70
|
+
|
|
71
|
+
Thank you one more time for your contribution. We try to deliver best user experience of geocoding, your contribution
|
|
72
|
+
will make better experience to all users!
|
package/README.md
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
|
-
<
|
|
2
|
-
<a href="https://www.maptiler.com/cloud/geocoding/">official page β</a><br>
|
|
3
|
-
<img src="images/maptiler-logo.svg" width="350px">
|
|
4
|
-
</p>
|
|
1
|
+
<img src="https://raw.githubusercontent.com/maptiler/maptiler-sdk-kotlin/main/Examples/maptiler-logo.png" alt="Company Logo" height="32"/>
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
The Javascript & TypeScript Map Control component for <a href="https://www.maptiler.com/cloud/geocoding">MapTiler Geocoding</a> service! Easy to be integrated into any JavaScript mapping application.
|
|
8
|
-
</p>
|
|
3
|
+
# MapTiler Search and Geocoding control for MapTiler SDK, MapLibre GL JS, Leaflet and OpenLayers
|
|
9
4
|
|
|
10
|
-
<
|
|
11
|
-
<img src="images/JS-logo.svg" width="20px">
|
|
12
|
-
<img src="images/TS-logo.svg" width="20px">
|
|
13
|
-
<img src="images/react-logo.svg" width="20px">
|
|
14
|
-
<img src="images/svelte-logo.svg" width="20px">
|
|
15
|
-
<img src="https://img.shields.io/npm/v/@maptiler/geocoding-control"></img>
|
|
16
|
-
<img src="https://img.shields.io/twitter/follow/maptiler?style=social"></img>
|
|
17
|
-
</p>
|
|
5
|
+
The Javascript & TypeScript Map Control component for <a href="https://www.maptiler.com/cloud/geocoding">MapTiler Geocoding</a> service! Easy to be integrated into any JavaScript mapping application.
|
|
18
6
|
|
|
19
|
-
|
|
7
|
+
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](https://docs.maptiler.com/sdk-js/) (or other map libraries like [Leaflet](https://docs.maptiler.com/leaflet/), [MapLibre GL JS](https://github.com/maplibre/maplibre-gl-js), [OpenLayers](https://docs.maptiler.com/openlayers/)).
|
|
20
8
|
|
|
21
|
-
|
|
9
|
+
> β οΈ _MapTiler Geocoding control_ v3 support for _Leaflet_ (v1 and v2) and _OpenLayers_ is to be added soon. In the meantime, please use _MapTiler Geocoding control_ v2 with these map libraries.
|
|
22
10
|
|
|
23
|
-
|
|
24
|
-
[
|
|
25
|
-
[Leaflet](https://leafletjs.com) and [OpenLayers](https://openlayers.org) utilizes [MapTiler Cloud Geocoding
|
|
26
|
-
API](https://www.maptiler.com/cloud/geocoding/). With this control, users of
|
|
27
|
-
mapping application can find any place on Earth (States, Cities, Streets, Addresses, POIs, ...) down
|
|
28
|
-
to the address level, restrict the search area to a specific country, highlight
|
|
29
|
-
searched results on the map, autocomplete words while typing, and much more.
|
|
11
|
+
[](https://www.npmjs.com/package/@maptiler/geocoding-control)
|
|
12
|
+

|
|
30
13
|
|
|
31
|
-
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
π [Documentation](https://docs.maptiler.com/sdk-js/modules/geocoding/) π¦ [NPM Package](https://www.npmjs.com/package/@maptiler/geocoding-control) π [Website](https://www.maptiler.com/search/) π [Get API Key](https://cloud.maptiler.com/account/keys/)
|
|
32
17
|
|
|
33
|
-
|
|
18
|
+
---
|
|
34
19
|
|
|
35
|
-
|
|
20
|
+
<br>
|
|
36
21
|
|
|
37
|
-
|
|
22
|
+
<details> <summary><b>Table of Contents</b></summary>
|
|
23
|
+
<ul>
|
|
24
|
+
<li><a href="#-installation">Installation</a></li>
|
|
25
|
+
<li><a href="#-basic-usage">Basic Usage</a></li>
|
|
26
|
+
<li><a href="#-related-examples">Examples</a></li>
|
|
27
|
+
<li><a href="#-api-reference">API Reference</a></li>
|
|
28
|
+
<li><a href="#migration-guide">Migration Guide</a></li>
|
|
29
|
+
<li><a href="#-support">Support</a></li>
|
|
30
|
+
<li><a href="#-contributing">Contributing</a></li>
|
|
31
|
+
<li><a href="#-license">License</a></li>
|
|
32
|
+
<li><a href="#-acknowledgements">Acknowledgements</a></li>
|
|
33
|
+
</ul>
|
|
34
|
+
</details>
|
|
38
35
|
|
|
39
|
-
|
|
36
|
+
<p align="center"> <img src="https://www.metalocator.com/wp-content/uploads/2022/07/maptiler-cloud-jp.jpg" alt="Demo Screenshot" width="80%"/> <br /> <a href="#">See live interactive demo</a> </p>
|
|
37
|
+
<br>
|
|
40
38
|
|
|
41
|
-
|
|
39
|
+
## π¦ Installation
|
|
42
40
|
|
|
43
|
-
|
|
41
|
+
Install the Geocoding control unsing `npm`, together with your map library (MapTiler SDK as an example):
|
|
44
42
|
|
|
45
43
|
```shell
|
|
46
44
|
npm install --save @maptiler/geocoding-control @maptiler/sdk
|
|
47
45
|
```
|
|
48
46
|
|
|
49
|
-
|
|
47
|
+
<br>
|
|
48
|
+
|
|
49
|
+
## π Basic Usage
|
|
50
|
+
|
|
51
|
+
Use the component in your mapping application (MapTiler SDK as an example):
|
|
50
52
|
|
|
51
53
|
```js
|
|
52
54
|
import * as maptilersdk from "@maptiler/sdk";
|
|
53
55
|
import { GeocodingControl } from "@maptiler/geocoding-control/maptilersdk";
|
|
54
56
|
import "@maptiler/sdk/dist/maptiler-sdk.css";
|
|
55
|
-
import "@maptiler/geocoding-control/style.css";
|
|
56
57
|
|
|
57
58
|
maptilersdk.config.apiKey = "YOUR_MAPTILER_API_KEY_HERE";
|
|
58
59
|
|
|
@@ -65,9 +66,9 @@ const gc = new GeocodingControl();
|
|
|
65
66
|
map.addControl(gc);
|
|
66
67
|
```
|
|
67
68
|
|
|
68
|
-
|
|
69
|
+
<br>
|
|
69
70
|
|
|
70
|
-
##
|
|
71
|
+
## π‘ Related Examples
|
|
71
72
|
|
|
72
73
|
- [With MapTiler SDK](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/sdk-js/)
|
|
73
74
|
- [With MapLibre GL](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/maplibre-gl-js/)
|
|
@@ -77,17 +78,48 @@ NOTE: Get your personal [MapTiler API key](https://docs.maptiler.com/cloud/api/a
|
|
|
77
78
|
- [As Svelte component](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/svelte/)
|
|
78
79
|
- [As vanilla JavaScript module](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/vanilla-js/)
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
Check out the full list of [MapTiler geocoding examples](https://docs.maptiler.com/sdk-js/examples/?q=geocoding)
|
|
82
|
+
|
|
83
|
+
<br>
|
|
84
|
+
|
|
85
|
+
## π API Reference
|
|
86
|
+
|
|
87
|
+
For detailed guides, API reference, and advanced examples, visit our comprehensive documentation:
|
|
88
|
+
|
|
89
|
+
[API documentation](https://docs.maptiler.com/sdk-js/modules/geocoding/api/api-reference/)
|
|
90
|
+
|
|
91
|
+
[Geocoding service API documentation](https://docs.maptiler.com/cloud/api/geocoding/)
|
|
92
|
+
|
|
93
|
+
[UMD global variables](https://docs.maptiler.com/sdk-js/modules/geocoding/#umd-global-variables)
|
|
94
|
+
|
|
95
|
+
<br>
|
|
96
|
+
|
|
97
|
+
## π¬ Support
|
|
98
|
+
|
|
99
|
+
- π [Documentation](https://docs.maptiler.com/sdk-js/modules/geocoding/) - Comprehensive guides and API reference
|
|
100
|
+
- βοΈ [Contact us](https://maptiler.com/contact) - Get in touch or submit a request
|
|
101
|
+
- π¦ [Twitter/X](https://twitter.com/maptiler) - Follow us for updates
|
|
102
|
+
|
|
103
|
+
<br>
|
|
104
|
+
|
|
105
|
+
---
|
|
81
106
|
|
|
82
|
-
|
|
107
|
+
<br>
|
|
83
108
|
|
|
84
|
-
|
|
85
|
-
- [The complete Geocoding control reference](https://docs.maptiler.com/sdk-js/modules/geocoding/api/api-reference/)
|
|
86
|
-
- [UMD global variables](https://docs.maptiler.com/sdk-js/modules/geocoding/#umd-global-variables)
|
|
109
|
+
## π€ Contributing
|
|
87
110
|
|
|
88
|
-
|
|
111
|
+
We love contributions from the community! Whether it's bug reports, feature requests, or pull requests, all contributions are welcome:
|
|
89
112
|
|
|
90
|
-
|
|
113
|
+
- Fork the repository and create your branch fromΒ `main`
|
|
114
|
+
- If you've added code, add tests that cover your changes
|
|
115
|
+
- Ensure your code follows our style guidelines
|
|
116
|
+
- Give your pull request a clear, descriptive summary
|
|
117
|
+
- Open a Pull Request with a comprehensive description
|
|
118
|
+
- Read the [CONTRIBUTING](./CONTRIBUTING.md) file
|
|
119
|
+
|
|
120
|
+
### Development
|
|
121
|
+
|
|
122
|
+
#### Building
|
|
91
123
|
|
|
92
124
|
```bash
|
|
93
125
|
npm install && npm run build
|
|
@@ -95,12 +127,52 @@ npm install && npm run build
|
|
|
95
127
|
|
|
96
128
|
You will find compilation result in the `dist` directory.
|
|
97
129
|
|
|
98
|
-
|
|
130
|
+
#### Running in dev mode
|
|
99
131
|
|
|
100
132
|
```bash
|
|
101
133
|
npm install && VITE_API_KEY=YOUR_MAPTILER_API_KEY_HERE npm run dev
|
|
102
134
|
```
|
|
103
135
|
|
|
136
|
+
Alternatively, you can provide your API key via `key` URL param.
|
|
137
|
+
|
|
104
138
|
### POI icons and bundlers
|
|
105
139
|
|
|
106
140
|
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.
|
|
141
|
+
|
|
142
|
+
<br>
|
|
143
|
+
|
|
144
|
+
## π License
|
|
145
|
+
|
|
146
|
+
This project is licensed under the BSD 3-Clause License β see theΒ [LICENSE](./LICENSE)Β file for details.
|
|
147
|
+
|
|
148
|
+
<br>
|
|
149
|
+
|
|
150
|
+
## π Acknowledgements
|
|
151
|
+
|
|
152
|
+
The _Geocoding control_ uses the [MapTiler Geocoding API](https://www.maptiler.com/cloud/geocoding/). You can use the API directly from your web or backend applications or use the [API Client JS](https://docs.maptiler.com/client-js/) library.
|
|
153
|
+
|
|
154
|
+
With this control, users of mapping application can:
|
|
155
|
+
|
|
156
|
+
- Find any place on Earth (States, Cities, Streets, Addresses, POIs, ...) down to the address level
|
|
157
|
+
- Find and identify objects or place names using a coordinate pair or a single mouse click (reverse geocoding)
|
|
158
|
+
- Restrict the search area to a specific country, bounding box, or proximity
|
|
159
|
+
- Highlight searched results on the map (marker or full geometry)
|
|
160
|
+
- Autocomplete words while typing
|
|
161
|
+
- and much more. Check out the [Geocoding Control API reference](https://docs.maptiler.com/sdk-js/modules/geocoding/api/api-reference/#options) to see all the options.
|
|
162
|
+
|
|
163
|
+
The component can be used as an ES module or UMD module with or without bundler.
|
|
164
|
+
|
|
165
|
+
Geocoding control itself is provided as a [Web component](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) which can be used with [React](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/react/), [Svelte](https://docs.maptiler.com/sdk-js/modules/geocoding/api/usage/svelte/), and any other modern frontend library, or without any library at all.
|
|
166
|
+
|
|
167
|
+
<br>
|
|
168
|
+
|
|
169
|
+
<p align="center" style="margin-top:20px;margin-bottom:20px;"> <a href="https://cloud.maptiler.com/account/keys/" style="display:inline-block;padding:12px 32px;background:#F2F6FF;color:#000;font-weight:bold;border-radius:6px;text-decoration:none;"> Get Your API Key <sup style="background-color:#0000ff;color:#fff;padding:2px 6px;font-size:12px;border-radius:3px;">FREE</sup><br /> <span style="font-size:90%;font-weight:400;">Start building with 100,000 free map loads per month γ» No credit card required.</span> </a> </p>
|
|
170
|
+
|
|
171
|
+
<br>
|
|
172
|
+
|
|
173
|
+
<p align="center"> π Made with love by the <a href="https://www.maptiler.com/">MapTiler</a> team <br />
|
|
174
|
+
<p align="center">
|
|
175
|
+
<a href="https://www.maptiler.com/search/">Website</a> β’
|
|
176
|
+
<a href="https://docs.maptiler.com/sdk-js/modules/geocoding/">Documentation</a> β’
|
|
177
|
+
<a href="https://github.com/maptiler/maptiler-geocoding-control">GitHub</a>
|
|
178
|
+
</p>
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Following versions are supported with security updateds:
|
|
6
|
+
|
|
7
|
+
| Version | Supported |
|
|
8
|
+
| ------- | --------- |
|
|
9
|
+
| 0.0.x | β |
|
|
10
|
+
| 1.x.x | β |
|
|
11
|
+
| 2.x.x | β |
|
|
12
|
+
| 3.x.x | β
|
|
|
13
|
+
|
|
14
|
+
## Reporting a Vulnerability
|
|
15
|
+
|
|
16
|
+
To report Vulnerability, add [new issue](https://github.com/maptiler/maptiler-geocoding-control/issues/new/choose) to the issues tracker
|