Comments (4)
@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.
@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.
@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.
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)
- Unhandled Promise rejection by Zone.js Error in Angular7 HOT 1
- How can I add get current location functionality
- use new Microsoft.Maps.DrawingTools with angular-maps HOT 6
- x-map-polygon events (moving a polygon point or creating a new point) HOT 1
- Show current location functionality with circle around the location HOT 1
- trigger MouseDown in x-map-polygon HOT 1
- Not updated polygon after add a point in the Paths
- Help use BingMapService HOT 1
- Cannot change Bingmaps height/width HOT 1
- BoundsChange emits wrong value
- Marker events does not trigger
- Font Awesome 5 not working
- Angular-Maps not working in Angular 9 HOT 9
- Spider cluster marker dynamic data loading issue
- x-map-polyline [Paths] are not working
- multilayer markers dynamic update not working
- CreateMap() this._loader.Load is not a function
- Image overlay
- Can I dynamically change keys for map? And switch map provider as well?
- Cannot read properties of undefined (reading 'nativeElement')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-maps.