Plugin Directory

Changeset 1586592


Ignore:
Timestamp:
02/01/2017 03:16:09 PM (9 years ago)
Author:
ionutmorariu
Message:

ADD: generate latitude and longitude in the damin meta fields

Location:
scale-lite-tools/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • scale-lite-tools/trunk/assets/js/admin.sl-maps.js

    r1586515 r1586592  
    2424                position: results[0].geometry.location
    2525            });
     26            document.getElementById("slt-map-latitude").value = results[0].geometry.location.lng();
     27            document.getElementById("slt-map-longitude").value = results[0].geometry.location.lat();
    2628            callback(results[0].geometry.location,map);
    2729          } else {
  • scale-lite-tools/trunk/inc/sl-google-maps/class-slt-gmap-meta-fields.php

    r1586525 r1586592  
    1919    ),
    2020    array(
    21       'id' => 'map-latitude',
     21      'id' => 'slt-map-latitude',
    2222      'label' => 'Latitude',
    2323      'type' => 'text',
    2424    ),
    2525    array(
    26       'id' => 'map-longitude',
     26      'id' => 'slt-map-longitude',
    2727      'label' => 'Longitude',
    2828      'type' => 'text',
     
    4040    ),
    4141    array(
    42       'id' => 'width',
     42      'id' => 'slt-gmap-width',
    4343      'label' => 'Width of map',
    4444      'type' => 'number',
    4545    ),
    4646    array(
    47       'id' => 'height',
     47      'id' => 'slt-gmap-height',
    4848      'label' => 'Height of map',
    4949      'type' => 'number',
Note: See TracChangeset for help on using the changeset viewer.