jweiland-net / maps2

This TYPO3 extension enables you to implement Google Maps on your website.
GNU General Public License v2.0
13 stars 16 forks source link

Cannot edit poi with map_provider google maps #310

Open artif-developer opened 7 months ago

artif-developer commented 7 months ago

TYPO3 12.4.11 maps2 Version 11.0 composer based installation:

when trying to add or edit poi of type area or route with map_provider gm I get the following error: In Chrome:

GoogleMapsModule.js:234 Uncaught TypeError: this.storeRouteAsJson is not a function
    at _.wm.<anonymous> (GoogleMapsModule.js:234:1)
    at _.Dk (js?key=XXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXX&libraries=places&callback=_GoogleMapsModule.initMaps:218:94)
    at _.wm.insertAt (js?key=XXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXX&libraries=places&callback=_GoogleMapsModule.initMaps:378:321)
    at _.wm.push (js?key=XXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXX&libraries=places&callback=_GoogleMapsModule.initMaps:379:229)
    at ho.<anonymous> (GoogleMapsModule.js:243:1)
    at _.Dk (js?key=XXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXX&libraries=places&callback=_GoogleMapsModule.initMaps:218:94)
    at Cka (map.js:22:33)
    at nD (map.js:19:345)
    at Object.ml (map.js:62:2342)
    at nea.ml (common.js:191:127)

In Firefox:

Uncaught TypeError: this.storeRouteAsJson is not a function
    createArea GoogleMapsModule.js:234
    Dk js:218
    insertAt js:378
    push js:379
    createArea GoogleMapsModule.js:243
    Dk js:218
    Cka map.js:22
    nD map.js:19
    ml map.js:62
    ml common.js:191
    Ng common.js:199
    EventListener.handleEvent* js:400
    pea common.js:198
    bw common.js:53
    ema map.js:62
    Fg map.js:113
    ho js:273
    IntersectionObserver single-file-hooks-frames.js:1
    ho js:273
    promise callback*ho js:272
    createMap GoogleMapsModule.js:158
    initialize GoogleMapsModule.js:56
    GoogleMapsModule GoogleMapsModule.js:20
    promise callback*GoogleMapsModule GoogleMapsModule.js:19
    <anonymous> GoogleMapsModule.js:496

poi can be set by searching address. But moving pin on the map leads to:

Uncaught TypeError: this.marker is undefined
    createMarker GoogleMapsModule.js:181
    Dk js:218
    dKa marker.js:32
    Dk js:218
    Bk js:218
    Dk js:218
    GC util.js:340
    Dk js:218
    mn util.js:222
    rk common.js:194
    rk common.js:191
    Ng common.js:200
    EventListener.handleEvent* js:400
    cha common.js:200
    Rg common.js:198
    EventListener.handleEvent* js:400
    pea common.js:198
    bw common.js:53
    PL util.js:221
    Fh marker.js:80
    Cz js:399
    Gj js:399
    position_changed marker.js:85
    Jk js:219
    set js:326
    rn marker.js:84
    Ri util.js:348
    Cla map.js:47
    HD map.js:46
    yw common.js:63
    HD map.js:46
    Fg map.js:105
    Fi map.js:94
    Fi map.js:105
    mKa marker.js:89
    g marker.js:37
    Dk js:218
    bn js:249
    CKa marker.js:47
    Sk marker.js:46
    setTimeout handler*_.Gt common.js:30
    DKa marker.js:46
    Ak marker.js:98
    lLa marker.js:97
    vw marker.js:129
    Fg js:256
    promise callback*Dn/e.Fg js:256
    bn js:249
    map_changed js:352
    Jk js:219
    set js:326
    jl js:227
    setValues js:327
    Ol js:232
    Ul js:233
    createMarker GoogleMapsModule.js:165
    initialize GoogleMapsModule.js:76
    GoogleMapsModule GoogleMapsModule.js:20
    promise callback*GoogleMapsModule GoogleMapsModule.js:19
    <anonymous> GoogleMapsModule.js:496

if I switch to osm I can edit all types

I have the same api key for googleMapsGeocodeApiKey and googleMapsJavaScriptApiKey

As I understood only Maps Javascript API and Geocoding API are used but Following Services are enabled for the key:

Ausgewählte APIs:
Maps JavaScript API
Places API
Places API (New)
Pollen API
Roads API
Routes API
Solar API
Geolocation API
Geocoding API
Distance Matrix API
Directions API
Address Validation API
Air Quality API
Maps Embed API
Map Tiles API
Maps Platform Datasets API

Is there anything else I have to mention? Anything I missed in configuration?