# Add "Input\_\<any layer\>" rule for Automap

**URL:** <https://discourse.mapeditor.org/t/add-input--any-layer-rule-for-automap/1606>\
**Category:** Suggestions\
**Created:** [August 22, 2016, 5:08pm UTC](https://discourse.mapeditor.org/t/add-input--any-layer-rule-for-automap/1606 "2016-08-22T17:08:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghost](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@Ghost](https://discourse.mapeditor.org/u/Ghost)\
**Post date:** [August 22, 2016, 5:08pm UTC](https://discourse.mapeditor.org/t/add-input--any-layer-rule-for-automap/1606/1 "2016-08-22T17:08:21Z")

</div>

Hi! Is there a way to add a “search tiles in all layers” rule for the automap input?

For example if there is the tile “X” in any tile layer, then add the object “Y” in the layer “Objects”.

I’ve searched about it on the web, but without luck.

Bye and thanks a lot! 😊

---

<div class="post-metadata">

**Author:** ![Ablu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ablu/32/1496_2.png) [@Ablu](https://discourse.mapeditor.org/u/Ablu)\
**Post date:** [September 2, 2016, 7:05am UTC](https://discourse.mapeditor.org/t/add-input--any-layer-rule-for-automap/1606/2 "2016-09-02T07:05:24Z")

</div>

I do not think that this is possible currently… But @stefanbeller should know this.

Regards,  
Ablu

---

<div class="post-metadata">

**Author:** ![Ghost](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@Ghost](https://discourse.mapeditor.org/u/Ghost)\
**Post date:** [September 2, 2016, 7:48am UTC](https://discourse.mapeditor.org/t/add-input--any-layer-rule-for-automap/1606/3 "2016-09-02T07:48:17Z")

</div>

I’ve supposed it 😔

I’ve changed the topic title, I hope @bjorn will add this function (I think it’ll be very useful).

Thanks for your reply 😊

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [September 2, 2016, 8:09am UTC](https://discourse.mapeditor.org/t/add-input--any-layer-rule-for-automap/1606/4 "2016-09-02T08:09:58Z")

</div>

The automapping code is by @stefanbeller and it’s tricky to change it without effecting compatibility, but I will consider adding this since it sounds useful indeed.
