bjorn2404 / jQuery-Store-Locator-Plugin

A store locator plugin using Google Maps API version 3
MIT License
495 stars 235 forks source link

Uncaught TypeError: Cannot read property 'get' of undefined #270

Open jmsobe opened 3 years ago

jmsobe commented 3 years ago

Getting occasional JS error using URL params regarding the Current Marker Id. Uncaught TypeError: Cannot read property 'get' of undefined. Any ideas why this is occurring? In this case there is one record being returned by the result

    ` * @param currentMarker {Object} Google Maps marker
     * @param storeStart {number} optional first location on the current page
     * @param page {number} optional current page
     *
     * @returns {Object} extended location data object
     */
    _defineLocationData: function (currentMarker, storeStart, page) {
        this.writeDebug('_defineLocationData',arguments);
        var indicator = '';
        this._createLocationVariables(currentMarker.get('id'));`