• Resolved bshrestha505

    (@bshrestha505)


    I am trying to implement a location search as described in here – https://wpmaps.mapster.me/examples/mapster-wp-map/custom-search-geocoder/

    I have added the mapbox token in the settings, however, I am seeing below error when I try to search location

    "message": "Stack \"5\" is not a known stack. Must be one of: aa, ad, ae, af, ag, ai, al, am, ao, aq, ar, as, at, au, aw, ax, az, ba, bb, bd, be, bf, bg, bh, bi, bj, bl, bm, bn, bo, bq, br, bs, bt, bv, bw, by, bz, ca, cc, cd, cf, cg, ch, ci, ck, cl, cm, cn, co, cr, cu, cv, cw, cx, cy, cz, de, dj, dk, dm, do, dz, ec, ee, eg, eh, er, es, et, fi, fj, fk, fm, fo, fr, ga, gb, gd, ge, gf, gg, gh, gi, gl, gm, gn, gp, gq, gr, gs, gt, gu, gw, gy, hk, hm, hn, hr, ht, hu, id, ie, il, im, in, io, iq, ir, is, it, je, jm, jo, jp, ke, kg, kh, ki, km, kn, kp, kr, kw, ky, kz, la, lb, lc, li, lk, lr, ls, lt, lu, lv, ly, ma, mc, md, me, mf, mg, mh, mk, ml, mm, mn, mo, mp, mq, mr, ms, mt, mu, mv, mw, mx, my, mz, na, nc, ne, nf, ng, ni, nl, no, np, nr, nu, nz, om, pa, pe, pf, pg, ph, pk, pl, pm, pn, pr, ps, pt, pw, py, qa, re, ro, rs, ru, rw, sa, sb, sc, sd, se, sg, sh, si, sj, sk, sl, sm, sn, so, sr, ss, st, sv, sx, sy, sz, tc, td, tf, tg, th, tj, tk, tl, tm, tn, to, tr, tt, tv, tw, tz, ua, ug, um, us, uy, uz, va, vc, ve, vg, vi, vn, vu, wf, ws, xk, xs, xx, ye, yt, yy, za, zm, zw, zz, xb, xc, qq, dg"

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author mapster

    (@mapster)

    Hello! I took a quick look and I think you entered a setting incorrectly. The “limit results” field, if you hover over the small question mark, isn’t about setting the number of results (which I think you did by entering “5”). That’s about limiting the areas of the world searched (ie, limiting by country codes). Remove the “5” from the Limit Results field on your map and it should work. Please let me know if it does.

    Thread Starter bshrestha505

    (@bshrestha505)

    And that worked. Thanks for the awesome plugin.

    Plugin Author mapster

    (@mapster)

    Great! Thanks! Please leave a review if you like it, that would help a lot 🙂 Have fun mapping!

    Thread Starter bshrestha505

    (@bshrestha505)

    Is there a way to setup the zoom so that the polygons I have in map are always on the screen. Eg: If I search for chicago in above, my polygons are gone – is there a way to zoom the map so that it includes the searched location as well as the polygons ?

    Plugin Author mapster

    (@mapster)

    Hello — no, if you search for a location, it will zoom in on that location or polygon, not zoom in and still show all the shapes on the map. If you want to share the use case we could add a feature request if it makes sense as a general feature, but you’re also always free to use the Developer Hooks in the docs to make unique functionality! https://wpmaps-docs.mapster.me/

    Thread Starter bshrestha505

    (@bshrestha505)

    thanks, ill check it out. Thanks for the quick response.

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

The topic ‘Location search is returning error’ is closed to new replies.