Change Location on the Map on Submit Listing Form

Discussion in 'GeoCraft WordPress Theme' started by kossuk, Dec 2, 2013.

Thread Status:
Not open for further replies.
  1. kossuk

    kossuk Guest

    Joined:
    Jan 25, 2013
    Messages:
    42
    Likes Received:
    4
    How can I change the location shown on the map on the 'Submit Listing' form?
    When the 'Submit Listing' form loads without any content added yet, there is a US based location shown on the Address Map to start with. We'd like to change that to a location of our choosing.

    Thanks.

    Martin
     
  2. kossuk

    kossuk Guest

    Joined:
    Jan 25, 2013
    Messages:
    42
    Likes Received:
    4
    Found it...

    I found this bit of code:

    Code:
    <?php
    if (stripslashes($geocraft_latitude) && stripslashes($geocraft_longitude)) {
        ?>
        var map_latitude = '<?php echo $geocraft_latitude; ?>';
        var map_longitude = '<?php echo $geocraft_longitude; ?>';
        <?php
    }else{
        ?>
        var map_latitude = '38.9826072';
        var map_longitude = '-76.48395949999997';
    <?php
    }
    ?>
    In themes/geocrafttheme/library/map/address_map.php

    And changed it to a UK based location (getting a latitude & longitude from http://www.latlong.net/), like this

    Code:
    <?php
    if (stripslashes($geocraft_latitude) && stripslashes($geocraft_longitude)) {
        ?>
        var map_latitude = '<?php echo $geocraft_latitude; ?>';
        var map_longitude = '<?php echo $geocraft_longitude; ?>';
        <?php
    }else{
        ?>
        var map_latitude = '52.954481';
        var map_longitude = '-1.150299';
    <?php
    }
    ?>
    Sorted...
     
    tobyb likes this.
Thread Status:
Not open for further replies.

Share This Page