[OpenLayers-Users] Markers on Google move around N/S

Salvaro asufsc at gmail.com
Thu Sep 4 10:40:49 EDT 2008


Thanks Christopher.

Another thing I saw in the code:
Why the variable projection receives a String and displayProjection receives
an object OpenLayers.Projection?


Christopher Schmidt-2 wrote:
> 
> On Thu, Sep 04, 2008 at 09:40:32AM -0300, André Salvaro wrote:
>> One doubt about these projection changes:
>> When I'm using two layers with different projections (a EPSG:4326 abd
>> EPSG:900913), which is the correct "config"? Should I set projection and
>> display projection in the Map object? Or directly in the Layer object? Or
>> both?
> 
> The Map 'projection' setting is copied to the Layers, if the layers do
> not have one of your own. So, if you always set it on all layers, that's
> sufficient; otherwise, you can set it on the map as a fallback in case
> you miss one.
> 
> 
>> Thanks,
>> André Salvaro.
>> 
>> 2008/9/3 Christopher Schmidt <crschmidt at metacarta.com>
>> 
>> > On Wed, Sep 03, 2008 at 12:29:05PM -0600, Matt Williamson wrote:
>> > > Ok,
>> > >
>> > > So I'm trying to do all this with sphericalMercator on...now, if I
>> > > start my map with a EPSG:4326 layer, and then switch to a Google
>> EPSG:
>> > > 900913 layer (using the layer switcher), my GML layer doesn't
>> > > automatically transform itself...fine, but what's the correct way to
>> > > make it do so? Or should it do it automatically?
>> >
>> > It *should* do it automatically, but it doesn't yet. There is an open
>> > ticket for this functionality.
>> >
>> > > Or, am I not supposed to try to make maps that can switch between
>> base
>> > > layers of different projections? Maybe that's why I'm having so much
>> > > trouble with this...?
>> >
>> > Right now, OpenLayers doesn't have the capability to do this in a sane
>> > way, that is correct.
>> > Regards,
>> > --
>> > Christopher Schmidt
>> > MetaCarta
>> > _______________________________________________
>> > Users mailing list
>> > Users at openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> >
> 
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Markers-on-Google-move-around-N-S-tp834225p838953.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list