-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to integrate search in this ngx-mapbox #380
Comments
If you mean the geocoder then it's not built in by default any more and needs some extra work to get going. The code for it was removed recently, not sure why but looks like it may be temporary? You can find it in an old commit here though: I'm not to sure how you're supposed to do it but this is what worked for me, I'd be happy to be corrected but until then:
After this you should have a tgz file containing the library as a package, if you run Just as an fyi, the filenames and paths may be different for you so copying and pasting likely wont work, this should be enough to get you going though. |
For showing the map in a page, I added this to a *.html file in a component:
and these are the supporting methods from my *.ts file:
|
Question to the devs of this repo. Why was the |
Note: Not one of the devs, just a user who had to dig in to a lot of this. I can't remember the reasoning but it was supposed to be a temporary thing, possibly they intended to move to it's own repo and then integrate as an external component? The workaround I mentioned above certainly works for Angular 13, not sure about 14 but certainly worth trying. |
Yes, that's what I thought. Otherwise I would have pinged you directly ;) |
Ah, no idea how I built it in that case and it was a long while back. Sorry it didn't help |
Can you help me on how to integrate search in the mapbox with lat,lang and addresss
The text was updated successfully, but these errors were encountered: