CanterburyRegionalCouncil / CanterburyMaps_NativeMobile

CanterburyMaps for iOS

Home Page:canterburymaps.govt.nz

Repository from Github https://github.comCanterburyRegionalCouncil/CanterburyMaps_NativeMobileRepository from Github https://github.comCanterburyRegionalCouncil/CanterburyMaps_NativeMobile

BaseMap Gallery (icons missing)

coomsie opened this issue · comments

Icons are missing or reference wrong ...

it's because the code is missing the protocol .... so native app places file in front ...

[Error] Failed to load resource: The requested URL was not found on this server. (2014-11-06_10_18_09-Aerial_1940-1949.png, line 0)

file://ecan.maps.arcgis.com/sharing/rest/content/items/adf5a21ea40d45559e0bd97505829174/info/thumbnail/2014-11-06_10_18_09-Aerial_1940-1949.png

Solution:

for mobile make sure the protocol is entered .... for all others DONT

{
"basemapGallery": {
"basemaps": [
{
"title": "Aerial 1940-1949",
"thumbnailUrl": "//ecan.maps.arcgis.com/sharing/rest/content/items/adf5a21ea40d45559e0bd97505829174/info/thumbnail/2014-11-06_10_18_09-Aerial_1940-1949.png",
"layers": [
{
"id": "layer0",
"layerType": "ArcGISTiledMapServiceLayer",
"opacity": 1,
"visibility": true,
"url": "http://gis.ecan.govt.nz/arcgis/rest/services/Imagery/SN152_Christchurch_19411014/MapServer"
}
],
"spatialReference": {
"wkid": 2193,
"latestWkid": 2193
}
},{
"basemapGallery": {
"basemaps": [
{
"title": "Aerial 1940-1949",
"thumbnailUrl": **"//**ecan.maps.arcgis.com/sharing/rest/content/items/adf5a21ea40d45559e0bd97505829174/info/thumbnail/2014-11-06_10_18_09-Aerial_1940-1949.png",
"layers": [
{
"id": "layer0",
"layerType": "ArcGISTiledMapServiceLayer",
"opacity": 1,
"visibility": true,
"url": "http://gis.ecan.govt.nz/arcgis/rest/services/Imagery/SN152_Christchurch_19411014/MapServer"
}
],
"spatialReference": {
"wkid": 2193,
"latestWkid": 2193
}
},

fixed with

1c39732