Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit f99de53

Browse files
authored
Merge pull request #19 from Netherlands3D/fix-queryparameters
fix url-querys for tilecontent
2 parents a638024 + 337a539 commit f99de53

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this package will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [1.10.1] - 10-1-2025
9+
10+
### Fixed
11+
- QueryParameters for tileContent no longer overwritten when trying to add authentication-parameters
12+
813
## [1.10.0] - 13-12-2024
914

1015
### Added

Runtime/Scripts/Read3DTileset.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,15 +659,15 @@ private string GetFullContentUri(Tile tile)
659659
//Combine query to pass on session id and API key (Google Maps 3DTiles API style)
660660
UriBuilder uriBuilder = new(fullPath);
661661
NameValueCollection contentQueryParameters = ParseQueryString(uriBuilder.Query);
662-
foreach (string key in contentQueryParameters.Keys)
662+
foreach (string key in queryParameters.Keys)
663663
{
664-
if (!queryParameters.AllKeys.Contains(key))
664+
if (!contentQueryParameters.AllKeys.Contains(key))
665665
{
666-
queryParameters.Add(key, contentQueryParameters[key]);
666+
contentQueryParameters.Add(key, queryParameters[key]);
667667
}
668668
}
669669

670-
uriBuilder.Query = ToQueryString(queryParameters);
670+
uriBuilder.Query = ToQueryString(contentQueryParameters);
671671
var url = uriBuilder.ToString();
672672
return url;
673673
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eu.netherlands3d.tiles3d",
33
"displayName": "Netherlands 3D - 3DTiles",
4-
"version": "1.10.0",
4+
"version": "1.10.1",
55
"unity": "2022.2",
66
"type": "library",
77
"keywords": [

0 commit comments

Comments
 (0)