Skip to content

Bad url query param parsing <KMLLayer /> #3433

Description

@Izocel

Hello im using an url with query param for the kml serving:
Im using the query.name params to get the requested file...

GET /api/projects?name=Urban_Surveillance_Zone_Alpha  --> 200

# But my server receive a badly appended 'time (?t)' query
# query.name='Urban_Surveillance_Zone_Alpha?t=124323423423'
TargetSweeper-360  | GET /api/projects?name=Urban_Surveillance_Zone_Alpha?t=124323423423 --> 500

# Expected format
# query.name='Urban_Surveillance_Zone_Alpha'
TargetSweeper-360  | GET /api/projects?name=Urban_Surveillance_Zone_Alpha&t=124323423423 --> 200
  <GoogleMap
    mapContainerClassName="w-full h-full min-h-[500px] rounded-lg"
    onLoad={handleMapLoaded}
  >
    <KmlLayer
      url={kmlData?.url ?? "https://rvdprojects.synology.me:3000/api/projects?name=Urban_Surveillance_Zone_Alpha"}
      onLoad={handleKmlLoad}
      onStatusChanged={handleKmlStatusChanged}
    />
    <Marker position={userPosition} />
  </GoogleMap>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions