Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSM field + Group clone issue #1272

Open
cedric-dagherir opened this issue Sep 3, 2018 · 1 comment
Open

OSM field + Group clone issue #1272

cedric-dagherir opened this issue Sep 3, 2018 · 1 comment

Comments

@cedric-dagherir
Copy link

Hi,

I have a problem in back end with the OSM field +address field in a clonable group :

  • 馃憤 When I use the first address field with autocomplete, the first map change the location and all is good
  • 馃憥 When I use the second address field, the second map do not change, but the first one do

WP : 4.9.8
Metabox : 4.15.4
Metabox Group : 1.2.16

My custom metas :

$meta_boxes[] = array(
        'id'       => 'metas_geoloc',
        'title'    => 'Localisation',
        'post_types'    => array('actions'),
        'context'  => 'normal',
        'priority' => 'high',
        'fields' => array(          
          array(
            'name'=>'R茅sum茅 adresse',
            'id'=> $prefix . 'resume_adresse',
            'type' => 'text',
            'desc' => 'Affich茅 sur la home 脿 la place de l\'adresse du lieu de rencontre.'
          ),
          array(
            'name' => 'Lieux de rencontre',
            'id' => $prefix . 'lieux',
            'type' => 'group',
            'clone'  => true,
            'add_button' => '+ Ajouter un lieu',
            'sort_clone' => true,
            'fields' => array(
              array(
                'name'=>'Adresse',
                'id'=> $prefix . 'adresse',
                'type' => 'text',
              ),         
              array(
                'name'=>'G茅olocalisation',
                'id'=> $prefix . 'geoloc',
                'type' => 'osm',
                'std' => '47.218371,-1.553621',
                'address_field' =>  $prefix . 'adresse',
              ),  
            )
          ),

        )        
    );

Do you need more information ? Can you reproduce this issue ?

@technique-onpc
Copy link

Hi,

Same problem with OSM + Group,

  • Our first map loaded correctly, but the second map tiles aren't generated.
  • Second map controls triggered events (zoom in/out) on the first map.

WP: 4.9.8
Metabox: 4.15.6
Metabox Group: 1.2.3

Screenshot :
metabox-multiple-maps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants