You might want to take a look at this link :- http://ngmap.github.io/

It's called ngMap and is the angularised version of Google Maps.
It still uses the Google Maps file, but wraps them all up into directives 
for ease of use.
There is a lot of examples on the site and I am sure you could get some 
good ideas from it.

Regards
Anthoni

On Wednesday, 27 April 2016 21:30:49 UTC+1, Gary Stanley wrote:
>
> I don't know exactly how to go about asking this question, without posting 
> a load of code, but basically does anyone here know of any example code 
> using AngularJS to dynamically add/remove Google Map markers, depending on 
> a filtered list of results?
>
> For example, say I have a list of 10 people buried in 10 different 
> locations. Lets say 3 of them have the surname "Smith", so when a user 
> types in "Smith", I only want those 3 burial locations to appear on a 
> Google Map, clearing the other 7.
>
> I know I'm over simplifying the question, but I can't find how to do this 
> anywhere! Currently I'm using PHP + MySQL to pull a list of people & burial 
> locations from a MySQL database and encode them to a JSON file. I'm then 
> using AngularJS to filter the results on the fly, so when someone types in 
> the search field, a table below list only the people with that name ... I 
> want to link this to a Google Map also only showing the location of those 
> burial results on the fly, and I'm suffering from complete brain fade ... 
> help me, please!
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to