[OpenLayers-Users] Failing with Ka-Map...
Jeff Dege
jdege at korterra.com
Thu Aug 10 14:08:18 CDT 2006
> -----Original Message-----
> From: Christopher Schmidt [mailto:crschmidt at crschmidt.net]
> Sent: Thursday, August 10, 2006 12:25 PM
> To: Jeff Dege
> Cc: users at openlayers.org
> Subject: Re: [OpenLayers-Users] Failing with Ka-Map...
>
> On Thu, Aug 10, 2006 at 10:47:07AM -0500, Jeff Dege wrote:
> > I have, after some playing around, an installation of ka-map v0.2
> > working against the gmap demo map data. I'm now trying to
> get the map
> > to display using OpenLayers' kamap layer type.
> >
> > [...]
> >
> > And this is what I get:
> >
> > http://www.visi.com/~jdege/openlayers-test.gif
> >
> > What am I missing?
>
> Currently, your ka-Map is being displayed in meters, but OpenLayers is
> working in degrees. It seems likely that this is cuasing the effect
> you're seeing.
I noticed that.
> In order to work in a different unit in OpenLayers, you will
> need to set
> two things: One, a different maxExtent, and two, a different
> maxResolution.
>
> It looks like you need, as an option (alongside controls: []):
>
> maxExtent: new OpenLayers.Bounds(-2200000,-712631,3072800,3840000),
> maxResolution: 'auto'
>
> This will set the extent to match the gmap75 demo (I believe
> -- I pulled
> this from googling) and it will set the maxResolution such that the
> entire map is displayed within the div you're setting up.
I tried it the other way round - I modified the gmap mapfile to use
decimal degrees and a latlong projection (WGS84), and then changed the
kamap layer to use degrees, and things still didn't work.
I tried your way, and that didn't work, either. (The OpenLayers viewer
starting off zoomed all the way out - like it's still thinking these are
degrees.)
> If this doesn't work, let me know where I can find the gmap75
> demo, and
> I'll get to work on trying to figure out how to solve the problem.
You can download gmap_ms4w_ms48.zip from the
http://dl.maptools.org/dl/ms4w/ page.
Thanks.
More information about the Users
mailing list