[OpenLayers-Users] Re: vector feature transform problems

Greg Allensworth gregor at greeninfo.org
Wed Sep 21 16:11:47 EDT 2011


On 9/21/2011 12:56 PM, jjdoc wrote:
> Hi Greg,
> Thanks for the reply, but I already included proj4j js code in my html:

Ah, yes you did. I scrolled right past that last time. My apologies.

You're using a compressed proj4js; are you sure it includes both the 
SRSs you need, 900913 and 4326 ?

The only other item I see is that your mapOptions only specifies the 
projection and not the whole set of settings. I don't know whether 
that's the cause, but I usually use this block to get the full Web 
Mercator Experience:

     projection: new OpenLayers.Projection("EPSG:900913"),
     units: "m",
     maxResolution: 156543.0339,
     maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 
20037508.34, 20037508.34)

I guess it's worth a try to paste that in and see if it helps.

Beyond that I think you're doing everything correctly.

-- 
Greg Allensworth, Web GIS Developer
BS  A+  Network+  Security+  Linux+  Server+  ZCE-PHP
GreenInfo Network - Information and Mapping in the Public Interest
564 Market Street, Suite 510  San Francisco CA 94104
PH: 415-979-0343 x302  FX: 415-979-0371    email: gregor at greeninfo.org
Web: www.GreenInfo.org     www.MapsPortal.org

Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org


More information about the Users mailing list