MCPcopy Create free account
hub / github.com/neomjs/neo / fetchData

Method fetchData

examples/component/wrapper/googleMaps/MapComponent.mjs:74–79  ·  view source on GitHub ↗

* Ajax request to get the Marker Data

()

Source from the content-addressed store, hash-verified

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

Callers 1

constructMethod · 0.95

Calls 3

fetchFunction · 0.50
logMethod · 0.45

Tested by

no test coverage detected