Ticket Q508787
Visible to All Users

Zoom on map with Ptv Loxane

created 12 years ago

Hi DevExpress,

I use Ptv Loxane component to take a map provider with gif format.
I check the Custom tile provider sample (http://www.devexpress.com/Support/Center/Example/Details/E3680).

In E3680 example, I see three parameters to obtain a zone (int zoomLevel, int tilePositionX, int tilePositionY) of getZoneByPosition method.
With Ptv Loxane, I give latitude and longitude position of left Top point and right Bottom point.
How I can make a link between yours parameters and mine?
Have you already seen this problem ?

Regards
Fabrice

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Hi,
Use the LayerBase.ViewportChanged event to get the geographical coordinates of the map view port (left top and right bottom corners of the visual map).
The GetTileByZoomLevel method needs tile positions for each zoom level according to the Deep Zoom terms. Note that the map zero zoom level corresponds to the zero deep zoom.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.