informatique:wordpress:acf:acf-openstreetmap-field
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:wordpress:acf:acf-openstreetmap-field [24/12/2024 11:09] – [Surcharge de la Localisation du résultat] cyrille | informatique:wordpress:acf:acf-openstreetmap-field [25/12/2024 21:56] (Version actuelle) – [different geocoders] cyrille | ||
|---|---|---|---|
| Ligne 12: | Ligne 12: | ||
| * [[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 ==== | ==== Surcharge de la Localisation du résultat ==== | ||
| - | In '' | + | * Issue https://github.com/mcguffin/ |
| + | * PR https:// | ||
| - | Override | + | In '' |
| Geocode results format are set with translation for localisation. But in some case we want specific formats. | Geocode results format are set with translation for localisation. But in some case we want specific formats. | ||
| - | < | + | In '' |
| - | 'address_format' | + | |
| - | 'street' | + | <code php> |
| - | ? constant(' | + | define(' |
| - | : __( ' | + | define(' |
| - | , ' | + | define(' |
| - | ' | + | |
| - | ? constant(' | + | |
| - | : __( '{postcode} {city} {town} {village} {hamlet}' | + | |
| - | , ' | + | |
| - | ' | + | |
| - | ? constant(' | + | |
| - | : __( ' | + | |
| - | , 'acf-openstreetmap-field' ) | + | |
| - | ] | + | |
| </ | </ | ||
| + | |||
| + | 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.1735034970.txt.gz · Dernière modification : de cyrille
