Plugin Directory

Changeset 3248769


Ignore:
Timestamp:
03/01/2025 06:34:28 AM (10 months ago)
Author:
flippercode
Message:

new camera controls added

Location:
wp-google-map-plugin
Files:
859 added
7 edited

Legend:

Unmodified
Added
Removed
  • wp-google-map-plugin/trunk/assets/js/maps.js

    r3125243 r3248769  
    839839            "map_type_control_style": "HORIZONTAL_BAR",
    840840            "map_type_control_position": "RIGHT_TOP",
     841            "camera_control_position" : "BOTTOM_RIGHT",
    841842            "scale_control": true,
    842843            "street_view_control": true,
     
    915916                    position: eval("google.maps.ControlPosition." + map_obj.settings.map_type_control_position)
    916917                },
     918                cameraControlOptions: {
     919                    position: eval("google.maps.ControlPosition." + map_obj.settings.camera_control_position)
     920                },
    917921                scaleControl: (map_obj.settings.scale_control == true),
    918922                streetViewControl: (map_obj.settings.street_view_control == true),
     
    926930                draggable: map_obj.settings.draggable,
    927931                mapTypeId: eval("google.maps.MapTypeId." + map_obj.settings.map_type_id),
    928                 styles: eval(map_obj.map_data.styles)
     932                styles: eval(map_obj.map_data.styles),
     933                cameraControl:map_obj.settings.camera_control,
    929934            });
    930935
  • wp-google-map-plugin/trunk/classes/wpgmp-check-cookies.php

    r3202775 r3248769  
    11<?php
    2 add_filter('wpgmp_accept_cookies','wpgmp_accept_cookies');
     2add_filter('wpgmp_accept_cookies','wpgmp_accept_cookies_consent');
    33
    44function check_cookieyes_consent() {
     
    2020}
    2121
    22 function wpgmp_accept_cookies($is_allowed) {
     22function wpgmp_accept_cookies_consent($is_allowed) {
    2323
    2424    if (function_exists('cmplz_has_consent') && cmplz_has_consent('marketing')) {
  • wp-google-map-plugin/trunk/modules/map/views/map-forms/control-position-style-form.php

    r2965985 r3248769  
    7676));
    7777
     78$form->add_element(
     79    'select', 'map_all_control[camera_control_position]', array(
     80        'lable'   => esc_html__( 'Camera Control', 'wp-google-map-plugin' ),
     81        'current' => isset( $_POST['map_all_control']['camera_control_position'] ) ? $_POST['map_all_control']['camera_control_position'] : '',
     82        'desc'    => esc_html__( 'Please select position of camera control.', 'wp-google-map-plugin' ),
     83        'options' => $positions,
     84    )
     85);
     86
    7887// Search Control Position
    7988$form->add_element( 'select', 'map_all_control[search_control_position]', array(
  • wp-google-map-plugin/trunk/modules/map/views/map-forms/control-setting-form.php

    r2965985 r3248769  
    5050));
    5151
     52$form->add_element(
     53    'checkbox', 'map_all_control[camera_control]', array(
     54        'lable'   => esc_html__( 'Turn On Camera Control', 'wp-google-map-plugin' ),
     55        'value'   => 'false',
     56        'id'      => 'camera_control',
     57        'current' => isset( $_POST['map_all_control']['camera_control'] ) ? $_POST['map_all_control']['camera_control'] : '',
     58        'desc'    => esc_html__( 'Please check to enable camera control.', 'wp-google-map-plugin' ),
     59        'class'   => 'chkbox_class',
     60    )
     61);
     62
    5263$form->add_element( 'checkbox', 'map_all_control[search_control]', array(
    5364    'lable' => esc_html__( 'Turn On Search Control', 'wp-google-map-plugin' ),
  • wp-google-map-plugin/trunk/modules/shortcode/views/put-wpgmp.php

    r3125243 r3248769  
    138138
    139139$infowindow_sourcecode = apply_filters('wpgmp_infowindow_message',do_shortcode($infowindow_setting) , $map );
     140
     141if ( ! isset( $map->map_all_control['camera_control'] ) )
     142$map->map_all_control['camera_control'] = false;
     143
    140144if ( ! isset( $map->map_all_control['search_control'] ) )
    141145$map->map_all_control['search_control'] = false;
     
    159163'infowindow_open_event' => ($map->map_all_control['infowindow_openoption']) ? $map->map_all_control['infowindow_openoption'] : 'click',
    160164'full_screen_control' => (!isset($map->map_all_control['full_screen_control']) || $map->map_all_control['full_screen_control'] != 'false'),
     165'camera_control' => (isset($map->map_all_control['camera_control'])) ? $map->map_all_control['camera_control'] : false,
    161166'search_control' => (!isset($map->map_all_control['search_control']) || $map->map_all_control['search_control'] != 'false'),
    162167'zoom_control' => (!isset($map->map_all_control['zoom_control']) || $map->map_all_control['zoom_control'] != 'false'),
     
    165170'full_screen_control_position' => (isset( $map->map_all_control['full_screen_control_position'] ) ) ? $map->map_all_control['full_screen_control_position'] : 'TOP_RIGHT',
    166171'search_control' => (!isset($map->map_all_control['search_control']) || $map->map_all_control['search_control'] != 'false'),
     172'camera_control_position'        => (isset($map->map_all_control['camera_control_position']) ) ? $map->map_all_control['camera_control_position'] : '',
    167173'search_control_position' => ( isset($map->map_all_control['search_control_position']) && !empty($map->map_all_control['search_control_position'])) ? $map->map_all_control['search_control_position'] : 'TOP_LEFT',
    168174'zoom_control_position' => $map->map_all_control['zoom_control_position'],
  • wp-google-map-plugin/trunk/readme.txt

    r3218931 r3248769  
    77Requires at least: 3.4
    88Tested up to: 6.7.1
    9 Stable tag: 4.6.9
     9Stable tag: 4.7.0
    1010Requires PHP: 5.3
    1111License: GPLv2 or later
     
    170170== Changelog ==
    171171
     172= 4.7.0 =
     173* Add : Fix the cookie consent hook callback issue.
     174* Add : Add Camera control manageable settings.
     175
    172176= 4.6.9 =
    173177* Add : Copy map shortcode by icon functionality added.
  • wp-google-map-plugin/trunk/wp-google-map-plugin.php

    r3218931 r3248769  
    66Author: flippercode
    77Author URI: https://weplugins.com/
    8 Version: 4.6.9
     8Version: 4.7.0
    99Text Domain: wp-google-map-plugin
    1010Domain Path: /lang
     
    854854           
    855855            if ( ! defined( 'WPGMP_VERSION' ) )
    856             define( 'WPGMP_VERSION', '4.6.9' );
     856            define( 'WPGMP_VERSION', '4.7.0' );
    857857           
    858858            if ( ! defined( 'WPGMP_FOLDER' ) )
Note: See TracChangeset for help on using the changeset viewer.