infusion-code / angular-maps

Angular Maps (X-Map) is a set of components and services to provide map functionality in angular 2+ apps. X-Maps architecture is provider independent and can be used with Bing, Google, ESRI or any other service enabled mapping provider. X-Map contains a default implementation for Bing Maps.
MIT License
41 stars 34 forks source link

Bing Maps Search #46

Open nlcano opened 6 years ago

nlcano commented 6 years ago

Hi there,

Do you have any sample with Bing Maps and the Search Manager (Microsoft.Maps.Search) implemented ?

Thanks for your help! -NC

thor-schueler commented 6 years ago

@nlcano, no we currently do not have support for this in place as part of angular-maps. We do have support for loading modules etc. But you'd have to implement the payloads yourself and then bind the results to the various components.

nlcano commented 6 years ago

@thor-schueler: Thanks, I am planning to add support for the Search Feature (and others). I would appreciate if you can provide some guidance.

So far, I clone and link the package locally, but I am getting the issue: Uncaught (in promise): Error: Unexpected value '[object Object]' with the same code that works with the published package.

thor-schueler commented 6 years ago

@nlcano: yeah, linking is tricky. When you link, the entire project gets linked into the node_modules folder of you local project, including the .ts files. So when you build, the ngc compiler will try to compile those file as well (depending on how your tsconfig in the local test project is setup). However, all the references will be screwed up, hence the errors (at least this is what I suspect).

You really have two options here:

If you continue to have issues getting it setup, let me know and I'll setup a skype to look at it with you. Once you got a local version, adding the search capabilities will likely include:

Hope that helps....

abhishekgupta1991 commented 6 years ago

Looking for only search box without bing map like autocomplete. When we are trying write in the box will hit the bing api and get the results. If you can advice, how we can achieve it with angular map.