Title: Map field attributes
Last modified: August 30, 2016

---

# Map field attributes

 *  Resolved [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-field-attributes/)
 * Hi, I am new to your plugin and it looks great.
 * I would like to use the map field.
 * I am having trouble finding info about how to use it:
 * The page at:
    [https://metabox.io/docs/define-fields/](https://metabox.io/docs/define-fields/)
   seems to skip the attributes for a map field.
 * I did a lot of searching:
    Search wp.org and did not find anything about attributes.
 * I found:
    [https://github.com/rilwis/meta-box/blob/master/demo/map.php](https://github.com/rilwis/meta-box/blob/master/demo/map.php)
   and tried that but it is not quite what I am looking for….
 * Is there anything that describes the attributes for the map field?
 * Thanks
 * [https://wordpress.org/plugins/meta-box/](https://wordpress.org/plugins/meta-box/)

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

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-field-attributes/#post-6385873)
 * 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](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-field-attributes/#post-6385876)
 * 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/](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](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-field-attributes/#post-6385951)
 * 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](https://wordpress.org/support/users/wpfan1000/)
 * (@wpfan1000)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/map-field-attributes/#post-6385952)
 * PS I noticed the map field attributes are on [https://metabox.io/docs/define-fields/](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.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [wpfan1000](https://wordpress.org/support/users/wpfan1000/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/map-field-attributes/#post-6385952)
 * Status: resolved