esri-leaflet-vector
esri-leaflet-vector copied to clipboard
Custom `baseUrl` and `stylePath` parameters
Describe the problem
From @corrigancd in #140:
Custom
baseUrlandstylePathparameters - In our case, we require paths to theitemIdthat are not the ones hardcoded in the current implementation. So three parameters were added:
baseUrl- The path to where theitemIdresides (defaults to the previousportalUrl + <hardcoded-path-to-itemId>if not specified anduseCustomUrlOrPath(see below) is not passed as true);stylePath- The path to the style json. This will be appended to after theitemIdin the path when retrieving the vectorTileStyle file (defaults to the previous<hardcoded-path-to-style>value if not specified anduseCustomUrlOrPathis not passed as true);useCustomUrlOrPath- Whether to use baseUrl and stylePath at all. If this is not passed, or passed as false, the previous functionality will happen, this includes the optional use ofportalUrl.
Describe the proposed solution
Proposed solution from From @corrigancd in #140: here and here