Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Anh Tran

    (@rilwis)

    The demo file is exactly everything you need to work on the map field. Basically, you need 2 fields:

    – 1 field with type text. It will store the address of the map.
    – 1 field with type map. This field has only 1 additional param address_field which must have the value = id of the text field above. In addition, you can specify the initial position of the map with std param in the format 'latitude,longitude[,zoom]'.

    Thread Starter wpfan1000

    (@wpfan1000)

    Thanks for your response.

    Respectfully, the demo file is not exactly everything I need. Different people will have different needs of map field depending on site requirements. I am wondering how you know that this is what I need if I have not described my particular needs in my issue?

    For example, most map fields of other plugin record the lat and long coordinates of a location. And I, and I imagine many others that want to display the location on a map, need this. This is not described in your demo file, nor does there seem to be any documentation about the map field on your site.

    Also when I tried the map demo you refer to, the submit or save button was below the map.

    I would prefer to have it next to the address field, so that users will know that it should be clicked. Presuming it should be clicked? But this is not described in your site or the demo file as far as I can tell. Not seeing any documentation on your site nor in the demo file, I am not sure if this is possible or if it is, how to.

    Also I am just wondering why you would exclude the map field attributes from https://metabox.io/docs/define-fields/ when other fields seem so well described.
    I was wondering if the reason is that the map field is in beta?

    Thread Starter wpfan1000

    (@wpfan1000)

    Hello,

    When I left my previous message to you, I did not know much about how your plugin worked, such as how to get values from a field, including the map field.

    I would like to apologize to you because in the last 2 days I learned how to do this, and I determined that by simply using

    <?php echo rwmb_meta( ‘map’ ); ?>

    I can get the lat and long coordinates of the location.

    This is a very nice plugin and I really like the map field, and I am sorry if my previous message sounded harsh.

    Thank you.

    Thread Starter wpfan1000

    (@wpfan1000)

    PS I noticed the map field attributes are on https://metabox.io/docs/define-fields/. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Map field attributes’ is closed to new replies.