Changeset 24680 in osm
- Timestamp:
- 2010-12-10T14:40:30+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/ImageryInfo.java
r24544 r24680 67 67 if(url != null && !url.isEmpty()) e2 = getFullURL(); 68 68 if(cookies != null && !cookies.isEmpty()) e3 = cookies; 69 if(imageryType == ImageryType.WMS ) {69 if(imageryType == ImageryType.WMS || imageryType == ImageryType.HTML) { 70 70 if(pixelPerDegree != 0.0) e4 = String.valueOf(pixelPerDegree); 71 71 } else { … … 88 88 if(array.size() >= 2) setURL(array.get(1)); 89 89 if(array.size() >= 3) this.cookies=array.get(2); 90 if(imageryType == ImageryType.WMS && array.size() >= 4) this.pixelPerDegree=Double.valueOf(array.get(3)); 91 if(imageryType == ImageryType.TMS && array.size() >= 4) this.maxZoom=Integer.valueOf(array.get(3)); 90 if(array.size() >= 4) { 91 if (imageryType == ImageryType.WMS || imageryType == ImageryType.HTML) { 92 this.pixelPerDegree=Double.valueOf(array.get(3)); 93 } else { 94 this.maxZoom=Integer.valueOf(array.get(3)); 95 } 96 } 92 97 } 93 98 -
applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/ImageryProvidersPanel.java
r24584 r24680 193 193 return info.getFullURL(); 194 194 case 2: 195 return (info.imageryType == ImageryType.WMS) ? (info.pixelPerDegree == 0.0 ? "" : info.pixelPerDegree) 196 : (info.maxZoom == 0 ? "" : info.maxZoom); 195 return (info.imageryType == ImageryType.WMS || info.imageryType == ImageryType.HTML) ? 196 (info.pixelPerDegree == 0.0 ? "" : info.pixelPerDegree) : 197 (info.maxZoom == 0 ? "" : info.maxZoom); 197 198 default: 198 199 throw new ArrayIndexOutOfBoundsException(); … … 214 215 info.maxZoom = 0; 215 216 try { 216 if(info.imageryType == ImageryType.WMS )217 if(info.imageryType == ImageryType.WMS || info.imageryType == ImageryType.HTML) 217 218 info.pixelPerDegree = Double.parseDouble((String) o); 218 219 else -
applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/wms/WMSLayer.java
r24670 r24680 139 139 } 140 140 141 142 141 @Override 143 142 public void destroy() { … … 166 165 } 167 166 167 @Override public ImageryInfo getInfo() { 168 return info; 169 } 170 168 171 @Override public String getToolTipText() { 169 172 if(autoDownloadEnabled) … … 171 174 else 172 175 return tr("WMS layer ({0}), downloading in zoom {1}", getName(), resolution); 173 }174 175 @Override public boolean isMergable(Layer other) {176 return false;177 }178 179 @Override public void mergeFrom(Layer from) {180 176 } 181 177
Note:
See TracChangeset
for help on using the changeset viewer.