Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Map on Front end submission

This topic contains 6 replies, has 2 voices, and was last updated by  Kareem 3 years, 6 months ago.

  • Author
    Posts
  • #30413

    Kareem

    How do we edit the zoom of the map at in the middle of the front end submission form. I can’t seem to find it and changing the main map setting only affects the coordinates and not the zoom.

    Thanks

  • #30492

    Kareem

    Also is there a way to change the google maps language. Because google offers different languages for google maps. Like google.com.sa/maps is in arabic. Where would I need to change the map link or address

  • #30565

    Anna
    Keymaster

    Hi Kareem,

    The map in the front end submission is in js/google_js/google_map_submit.js

    You’ll have to look in there for the zoom level code. Code looks like this

    var mapOptions = {
    flat:false,
    noClear:false,
    zoom: 17,
    scrollwheel: true,
    draggable: true,
    disableDefaultUI:false,
    center: new google.maps.LatLng( listing_lat, listing_lon),
    mapTypeId: google.maps.MapTypeId.ROADMAP

  • #30566

    Anna
    Keymaster

    I don’t know where language can be changed. I’ll ask my partners to answer this one. Will take a day or two.

    Thanks
    Anna

  • #30608

    Kareem
  • #30818

    crerem

    Hello,

    THis is possible but will be applied to all the maps in the theme – top header map included

    accrding to the documentation you need to attach a language variable to the google map api include script

    open functions.php and look for this line
    wp_enqueue_script(‘googlemap’, ‘http://maps.googleapis.com/maps/api/js?sensor=true&key=’….

    after sensor=true add this code &language=ja where ja is the language (japanese in this case)

    The process is explained in detail here
    https://developers.google.com/maps/documentation/javascript/basics#Language

    look for Language Localization

    Also here are the languages supported
    https://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1

  • #31349

    Kareem

    Hi,

    Thank you for your quick reply and great support! I will give this a try.

    Regards,
    Kareem

You must be logged in to reply to this topic.