Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to set bounds for PointGrid. I have map object which is 500x1500, but it's not working.

Code:

 var points = new OpenLayers.Layer.PointGrid({
                name        : "Points grid",
                dx          : 25,
                dy          : 25,
                maxFeatures : 4000,
                ratio       : 1,
                gridBounds  :  OpenLayers.Bounds.fromArray([0, 0, 500, 1500]),
                origin      : new OpenLayers.LonLat(0, 4),
                styleMap: new OpenLayers.StyleMap({
                    pointRadius: 1,
                    strokeColor: "#895656",
                    strokeWidth: 0,
                    fillOpacity: 1,
                    fillColor: "#EFAFAF",
                    graphicName: "square"
                })
            });
share|improve this question
To help us focus our answers, please indicate how this procedure has failed and what efforts you have made to correct the problem. – whuber Jun 25 '12 at 12:57

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.