* Ajax request to get the Marker Data
()
| 72 | * Ajax request to get the Marker Data |
| 73 | */ |
| 74 | fetchData() { |
| 75 | fetch('../../../../examples/component/wrapper/googleMaps/earthquakes.json') |
| 76 | .then(response => response.json()) |
| 77 | .catch(err => console.log("Can't access + url, err")) |
| 78 | .then(data => this.createMarkersAndAddToMarkerStore(data)) |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Create Marker records from the Server result and add all Markers to the MarkerStore |
no test coverage detected