Angular-google-maps: Cannot use observable array for generating the map markers

Created on 28 Oct 2017  路  2Comments  路  Source: SebastianM/angular-google-maps

For instance, in an app with a markers defined via a service, this code shows 0 markers despite there being 3 markers in the array.


[latitude]="marker.latitude"
[longitude]="marker.longitude">

In the TS file, markers$ is defined as
markers$: Observable and initialized as this.markers$ = markerService.markers$;

with Marker model:
export interface Marker {
ip: string;
rate: number;
city: string;
state: string;
latitude: number;
longitude: number;
}

Most helpful comment

sorry never mind :) i was zoomed too far in. didn't notice the markers appearing :)

All 2 comments

sorry never mind :) i was zoomed too far in. didn't notice the markers appearing :)

I am sorry for this comment but i almost fell from my chair laughing,

Funny as hell.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shedar picture shedar  路  4Comments

dineshkumar20 picture dineshkumar20  路  3Comments

ChrisDevinePimss picture ChrisDevinePimss  路  3Comments

matishw picture matishw  路  3Comments

PeterSisovsky picture PeterSisovsky  路  3Comments