Open Street Map display does not work in oxygen (for me)

Support MB Geolocation Open Street Map display does not work in oxygen (for me)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38552
    JooJoo
    Participant

    Hello,
    i want to display the open street map from my mapgroup, but it does not work.

    <?php
    $args = [
        'width'  => '640px',
        'height' => '480px',
    ];
    $group_values = rwmb_meta( 'mapgroup' );
    // If group is cloneable
    foreach ( $group_values as $group_value ) {
        echo RWMB_Map_Field::render_map( $group_value['osmmap'], $args );
    }
    ?>

    My Setup ist:

    GROUP (ID=mapgroup)

    - Search (text)
    ID=address

    - Map (Open Street Map)
    ID=osmmap
    Adress field=address
    custom settings= geo -> true

    If i add that PHP Code i get this and many more issues:
    oxygen/component-framework/components/classes/code-block.class.php(128) : eval()'d code on line 9

    Does metabox works with php 8.1.x.x ?

    best regards

    #38554
    Long NguyenLong Nguyen
    Moderator

    Hi Joo,

    Can you please deactivate the plugin Oxygen Builder and add the code to the template file of the theme and see if the map displays?
    If it still does not display, please share the code that creates the custom fields on your site. Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.