Code Monkey home page Code Monkey logo

Comments (4)

thor-schueler avatar thor-schueler commented on August 10, 2024

@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.

from angular-maps.

nlcano avatar nlcano commented on August 10, 2024

@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.

from angular-maps.

thor-schueler avatar thor-schueler commented on August 10, 2024

@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:

  • build the package in your local clone (npm run prepublish) and then copy the contents of the dist folder into the appropriate place in the node_modules of your local test project (instead of using npm link). That is what I usually do. Since the dist won't contain the ts files, you'll be in good shape.
  • adjust the tsconfig file in your local test project to exclude any .ts files in node_modules from the compile.

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:

  • Defining a search service contract. (see the abstracts in the services root as go-bys)
  • Implement the contract for bing (and preferably for google).
  • Create a component the renders the search box for inclusion in the map. You'd inject the service into the component and the results would probably be an observable that that map host can subscribe to to do appropriate things.

Hope that helps....

from angular-maps.

abhishekgupta1991 avatar abhishekgupta1991 commented on August 10, 2024

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.

from angular-maps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.