Currently, i'm building a REST service which will receive the bbox from front-end and then using that bbox to looking for appropriate Geometry Shape in MSSQL database. My Openlayer are setting up like this:

var myLayer= new OpenLayers.Layer.Vector("TestLayer", {
        styleMap: style,
        strategies: [new OpenLayers.Strategy.BBOX()],
        protocol: new OpenLayers.Protocol.HTTP({
            url: baseUrl,
            format: new OpenLayers.Format.GeoJSON()

Now the problem is that the BBOX sent from Openlayers is too large which cause the REST api crash. As i see using WMS layer, it break the BBOX to smaller pieces and send them to WMS server. So How can i achieve that, i means break the BBOX to separate smaller pieces and send it to my REST api

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.