Skip to content

Commit 8e20313

Browse files
authored
Merge pull request #419 from bcgov/4.5.2-fix
fix kml style format
2 parents 1845e9e + 257c849 commit 8e20313

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ols-geocoder-web/src/main/java/ca/bc/gov/ols/geocoder/rest/messageconverters/KmlOlsResponseConverter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,11 @@ private String getStyleUrl(GeocoderConfig config, String type,
371371
}
372372
return config.getOccupantCategoryKmlStyleUrl() + "#" + type + "_" + occ.getBusinessCategoryClass();
373373
}
374-
return config.getKmlStylesUrl() + "#" + type + "_" + addr.getLocationDescriptor() + "_"
374+
if(addr.getLocationPositionalAccuracy() != null){
375+
return config.getKmlStylesUrl() + "#" + type + "_" + addr.getLocationDescriptor() + "_"
375376
+ addr.getLocationPositionalAccuracy().toString();
377+
}
378+
return config.getKmlStylesUrl() + "#" + type + "_" + addr.getLocationDescriptor();
376379
}
377380

378381
private String getLookAt(GeocoderAddress addr, GeocoderConfig config) {

0 commit comments

Comments
 (0)