ThinkGeo.com    |     Documentation    |     Premium Support

OpenStreetMap loading issue

Hi,
Please observe your web samples(Overlays–>Use OpenStreetMap). whenever zoom out openstreetmap not loading fully.

Please observe attached image.

Tell me, what is the issue? How can we fix it.

Thanks,
Riyaz

Hi Riyaz,

It looks some parameters of OSM get changed, as below is a workaround, please let me know whether it works for you.

    <script type="text/javascript">
    var OnMapCreating = function (map) {            
        SphericalOverlay.prototype.createOSMOverlay = function ()
        {
            this.options.maxResolution = 156543.0399;                
            this.element = new OpenLayers.Layer.OSM(this.name, null, this.options);
            this.element.type = this.json.osmtype;
            this.element.uris = this.json.uris;
            this.element.setTileSize(new OpenLayers.Size(this.json.w, this.json.h));
            this.setTickEventArguments();
        }
    }
</script> 

Regards,

Ethan

Hi Ethan,
Thanks, it’s work out well.

Thanks,
Riyaz

Hi Riyaz,

I am glad to hear that works.

Regards,

Ethan