hi,
I already told you my problem (see the third post). At the moment, I'm
developing local, so I can't give you a link - sorry.

But what about this: I would need the following: Imagine, I start my
application, with default zoom level 13 (let's call this setting
area1). I make my first requests to the server, erverything works
fine. Now the user zooms out. As a result he sees "more", ok less
details, but more (let's call this area2). How can I determine the
amount of pixel between area1 and area2?

On Aug 25, 1:09 pm, Marcelo <[email protected]> wrote:
> On Aug 25, 11:46 am, "in.gogle.i.trust" <[email protected]>
> wrote:
>
> > ok, thanks, now it seems to be a little bit clearer. but how can that
> > help me?
>
> How can I know how it can help you? I'm only answering your questions.
>
> Please follow the group's posting 
> guidelines:http://groups.google.com/group/Google-Maps-API/web/suggested-posting-...http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...
>
> Post a link, (NOT code)! Long explanations are a waste of time.
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> > My first thought after reading your explanation was, that I simply
> > subtract the values
> > calculated from fromLatLngToPixel(ne, 13) and fromLatLngToPixel(ne,
> > 12). but that
> > don't worked. The result is still to big.
>
> > because if I would know, how many pixel are now "more" on the map that
> > would solve
> > my problem.
>
> > On Aug 25, 11:32 am, Marcelo <[email protected]> wrote:
>
> > > The values you get are *map* pixel values, as opposed to *div* pixel
> > > values.
>
> > > At zoom level 0, the entire world fits in one tile of 256x256 pixels.
> > > At zoom level 1, 2x2 tiles of 256x256 each, so the world has 512x512
> > > pixels.
> > > At zoom level 3, 4x4 tiles, so the world has 1024x1024 pixels.
> > > ... and so on.
>
> > > At zoom level 13, the world has Math.pow(2,13) * Math.pow(2,13), which
> > > is 8192 x 8192 pixels.
>
> > > --
> > > Marcelo -http://maps.forum.nu
> > > --
>
> > > On Aug 25, 9:35 am, "in.gogle.i.trust" <[email protected]>
> > > wrote:
>
> > > > Hi,
> > > > ok I need help with your advice. I don't understand what the method
> > > > really does. I arranged to get a GProjection instance of my currently
> > > > used map.
> > > > something like:
> > > > var mapType = map.getCurrentMapType();
> > > > var proj = mapType.getProjection();
>
> > > > ok, now I get the acutal lat/lng bounds of the visible area with
> > > > map.getBounds().
>
> > > > var ne     = bounds.getNorthEast();
> > > > and when I call proj.fromLatLngToPixel(ne, 13); I get rather big
> > > > return values. Maybe they are right, but I have no idea what they mean
> > > > or the function calucaltes. The API explanation for this is not
> > > > overwhelming.
>
> > > > On Aug 25, 7:08 am, "in.gogle.i.trust" <[email protected]>
> > > > wrote:
>
> > > > > hi,
> > > > > thank you, that was exactly what I need!
> > > > > best regards
>
> > > > > On Aug 24, 5:58 pm, Marcelo <[email protected]> wrote:
>
> > > > > > On Aug 24, 4:59 pm, "in.gogle.i.trust" <[email protected]>
> > > > > > wrote:
>
> > > > > > > Now when I don't zoom, just drag the map, everything works fine. 
> > > > > > > But
> > > > > > > when I change the zoom level (e.g. I zoom out) => I see "more" on 
> > > > > > > the
> > > > > > > screen. But the function
> > > > > > > fromDivPixelToLatLng doesn't change the output, because I don't 
> > > > > > > move
> > > > > > > the card, just zoom. However now the wrong areas are affected and 
> > > > > > > the
> > > > > > > wrong thing will be drawn to the map.
>
> > > > > > Aha! :-)
> > > > > > ... but that's because you're using *DIV* pixels, and the <div>
> > > > > > holding the map does not change.
> > > > > > What you probably want is fromLatLngToPixel(latlng,zoom) and
> > > > > > fromPixelToLatLng(pixel,zoom), without the 'DIV' part:
>
> > > > > >http://code.google.com/apis/maps/documentation/reference.html#GMercat...
>
> > > > > > --
> > > > > > Marcelo -http://maps.forum.nu
> > > > > > --
>
> > > > > > > So I need to a function fromDivPixelToLatLng(point, zoomLevel). 
> > > > > > > Is it
> > > > > > > now clear to you?
>
> > > > > > > On Aug 24, 4:22 pm, Marcelo <[email protected]> wrote:
>
> > > > > > > > I'd suggest that you describe the goal, not the 
> > > > > > > > step:http://www.catb.org/%7Eesr/faqs/smart-questions.html#goal
>
> > > > > > > > I can't imagine what you possibly could want that for.
>
> > > > > > > > --
> > > > > > > > Marcelo -http://maps.forum.nu
> > > > > > > > --
>
> > > > > > > > On Aug 24, 3:57 pm, "in.gogle.i.trust" 
> > > > > > > > <[email protected]>
> > > > > > > > wrote:
>
> > > > > > > > > Hi
> > > > > > > > > I have a question. I would need the function 
> > > > > > > > > "fromDivPixelToLatLng"
> > > > > > > > > but with an additional parameter, namely the zoom-level of 
> > > > > > > > > the card.
> > > > > > > > > Can anybody help me?
> > > > > > > > > In other words, something like fromDivPixelToLatLng(point, 
> > > > > > > > > zoomLevel)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to