Geolocation + OSM

Support MB Geolocation Geolocation + OSMResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35389
    UNIT08UNIT08
    Participant

    Hi,

    i succeeded to use MB Geolocation + OSM but looking in code, i found out that the plugin is still loading google maps scripts, which is totally forbidden in Germany.
    Moreover there is a warning in console "Google Maps JavaScript API warning: NoApiKeys..."

    is there any workaround for this?

    
    <?php
    $metaBoxes[] = [
      'title' => __('Address'),
      'post_types' => ['company'],
      'id' => 'geolocation',
      'geo' => true,
      'fields' => [
        array(
          'type' => 'text',
          'name' => 'Address',
          'id'    => 'address'
        ),
        array(
          'type' => 'number',
          'name' => 'Postcode',
          'id'    => 'postcode',
          'placeholder' => 'Postcode*',
        ),
        array(
          'type' => 'text',
          'name' => 'house_number',
          'id'    => 'house_number',
          'placeholder' => 'house_number*',
        ),
        [
          'name' => 'Map',
          'type' => 'osm',
          'id'   => 'company_data_map',
          'language' => 'de-DE',
          'region' => 'DE',
          'address_field' => 'address',
        ],
      ],
    ];
    #35395
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for your feedback.

    We've noticed this issue and fixed it in a new commit. It will be included in the next update.

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