making pink tiles a css matter. p=rdewit, r=me (closes #2318)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9758 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -4,21 +4,27 @@
|
||||
href="../../theme/default/style.css"
|
||||
rel="stylesheet" type="text/css">
|
||||
<style>
|
||||
#map {
|
||||
width: 512px;
|
||||
height: 512px;
|
||||
border: 1px solid #4B3624;
|
||||
background: White;
|
||||
}
|
||||
#map {
|
||||
width: 512px;
|
||||
height: 512px;
|
||||
border: 1px solid #4B3624;
|
||||
background: White;
|
||||
}
|
||||
|
||||
/* avoid pink tiles */
|
||||
.olImageLoadError {
|
||||
border: none !important;
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
.olControlAttribution { bottom: 0px!important }
|
||||
</style>
|
||||
<script src="../../lib/OpenLayers.js"
|
||||
type="text/javascript"></script>
|
||||
<script type="text/javascript">var map;
|
||||
|
||||
// avoid pink tiles
|
||||
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
|
||||
OpenLayers.Util.onImageLoadErrorColor = "transparent";
|
||||
// increase reload attempts
|
||||
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
|
||||
|
||||
var vectorLayer;
|
||||
var markerLayer, boxes, newPoint;
|
||||
@@ -120,4 +126,4 @@ Zoom 6. No lines.</p>
|
||||
<button onClick="zoomToScale(7);">Zoom 7</button>
|
||||
<button onClick="zoomToScale(8);">Zoom 8</button>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user