using System; using UnityEngine; public class BuildingCustomRequestExample:MonoBehaviour { private void Start() { OnlineMapsBuildings.instance.OnPrepareRequest += OnPrepareRequest; } private string OnPrepareRequest(string originalRequest, Vector2 topLeft, Vector3 bottomRight) { return String.Format("node({0},{1},{2},{3});way(bn)['building'~'hospital|apartments'];(._;>;);out;", bottomRight.y, topLeft.x, topLeft.y, bottomRight.x); } }