informatique:wordpress:acf:acf-openstreetmap-field
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| informatique:wordpress:acf:acf-openstreetmap-field [24/12/2024 10:59] – créée cyrille | informatique:wordpress:acf:acf-openstreetmap-field [25/12/2024 21:56] (Version actuelle) – [different geocoders] cyrille | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Un plugin ACF pour intégrer une carte à partir d' | Un plugin ACF pour intégrer une carte à partir d' | ||
| - | Subscribed issues: | + | ===== Proposed changes ===== |
| - | * [[Other library nominatim to geocoder](https:// | + | |
| + | ==== different geocoders ==== | ||
| + | |||
| + | The plugin already use [[https:// | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | Étude ... | ||
| + | <code javascript> | ||
| + | // plugin view | ||
| + | // in wp-content/ | ||
| + | initGeocode() { | ||
| + | | ||
| + | ... | ||
| + | geocoder: L.Control.Geocoder.nominatim( nominatim_options ) | ||
| + | | ||
| + | |||
| + | // tests | ||
| + | // in wp-content/ | ||
| + | mapDrawCenter(){ | ||
| + | const geocoder | ||
| + | |||
| + | </ | ||
| + | |||
| + | Les geocoders de [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | Geocoder options | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Surcharge de la Localisation du résultat ==== | ||
| + | |||
| + | * Issue https:// | ||
| + | * PR https:// | ||
| + | |||
| + | In '' | ||
| + | |||
| + | Geocode results format are set with translation for localisation. But in some case we want specific formats. | ||
| + | |||
| + | In '' | ||
| + | |||
| + | <code php> | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | </ | ||
| + | |||
| + | Or with a filter in '' | ||
| + | |||
| + | <code php> | ||
| + | add_filter(' | ||
| + | $format[' | ||
| + | return $format ; | ||
| + | } ); | ||
| + | </ | ||
| + | |||
| + | ==== Set map view with zoom after geocoding ==== | ||
| + | |||
| + | * https:// | ||
| + | * @mcguffin closed this as completed in [[https:// | ||
informatique/wordpress/acf/acf-openstreetmap-field.1735034354.txt.gz · Dernière modification : de cyrille
