Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User Nippuside's Avatar
    Join Date
    Dec 2012
    Posts
    1
    Hi,

    I'm trying to migrate from Bing WP7 map to WP8 map.

    1) Microsoft.Phone.Maps.Controls.Map exposes ViewChanging and ViewChanged events. I'd expect them to fire when I pan the map. That does not happen.

    WP7 Bing map fires ViewChangeStart and ViewChangeEnd, ONCE per each view manipulation. My application hooks to latter and then draws content on the map. How would I implement this with WP8 map?

    You can test WP8 events with MapEvents sample which is included in Windows Phone 8 Maps Examples. Sources: http://projects.developer.nokia.com/...d29&format=zip

    2) How do you access map bounding rectangle (extents)?

    WP7 Bing Map provides BoundingRectangle property which allows accessing map WGS84 bounds. I need that information for fetching content to be drawn on the map.

    3) About CenterChanged and ZoomLevelChanged events: Why don't event arguments contain any data related to event (i.e. resulting center / zoom level)?

    I asked these questions on Microsoft Dev Forum. They told me to continue here as "The new map system was supplied by Nokia".

    Thanks,

    Nippuside

  2. #2
    Nokia Developer Champion josueyeray's Avatar
    Join Date
    Feb 2012
    Location
    Bilbao
    Posts
    38
    Hi!

    The doc for the map control is very basic, but can be found in MSDN:
    http://msdn.microsoft.com/en-us/libr...v=vs.105).aspx

    Also i find This article in the Nokia blogs about maps:
    http://www.developer.nokia.com/Blogs...december-2012/


    You now have two events: ViewChanging and ViewChanged, i think you can subscribe to ViewChanged that its mean to be fired once the manipulation of the view ends.

    As for the bounding rectangle i don't see any property or method that resolves it.

    Better you can take a look at the MSDN doc and try with the events and properties documented.

    Good luck and sorry to can't help you more
    Last edited by josueyeray; 2012-12-22 at 09:50.

  3. #3
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,671
    1) if you want to know when the map is fully drawn etc, for each differenc change, you could use ResolveCompleted, if that would not work, then please explain when and for what excatly you would need to get notified for.

    2) what do you mean ? basically you can resolve the upperleft corder by checking what coordinate is gived for TPoint(0,0), and use TPoint(Width, height) to get the lower bottom, and these two points do give you are visible map boundaries.

    3) I don't know the reasoning, anyway, as you know what has been changed, its rather easy to get the values from the map object.

Similar Threads

  1. Key events
    By sridharbandi in forum Symbian C++
    Replies: 6
    Last Post: 2010-07-05, 07:51
  2. key events
    By manzoor10 in forum Symbian C++
    Replies: 10
    Last Post: 2009-02-19, 14:49
  3. Replies: 2
    Last Post: 2009-01-21, 05:13
  4. high-level events VS. low-level events
    By zivgr in forum Mobile Java General
    Replies: 3
    Last Post: 2003-05-14, 16:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved