How do I get my MapIcon to always show?

Hey guys,
I've started coding a little WP 8.1 Map application using MapControl to render the map and MapIcon . I've been browsing the thin documentation on these components
online and ultimately used Microsoft's Dev Center Page.
On the page it states that The MapIcon is not guaranteed to be shown. It may be hidden when it obscures other elements or labels on the map. and this is exactly the
problem I suffer from. I have tried setting theZIndex to ridiculously high values such as 500/1000 but to no avail. My icons won't display it seems when there is a big label somewhere on the map.
Have any of you come across this issue? If yes how did you get around it?

I personally never use the MapIcon class for pushpins. Instead I create a UIElement and add it to the map using the Children property. This is more inline with other versions of Bing Maps and gives you a lot more flexibility. Also, as noted in one of the
other posts, the children renders above everything else. Here is an example of how to create a circle pushpin with text written above it.
public void AddPushpin(BasicGeoposition location, string text)
var pin = new Grid()
Width = 24,
Height = 24,
Margin = new Windows.UI.Xaml.Thickness(-12)
pin.Children.Add(new Ellipse()
Fill = new SolidColorBrush(Colors.DodgerBlue),
Stroke = new SolidColorBrush(Colors.White),
StrokeThickness = 3,
Width = 24,
Height = 24
pin.Children.Add(new TextBlock()
Text = text,
FontSize = 12,
Foreground = new SolidColorBrush(Colors.White),
HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Center,
VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Center
MapControl.SetLocation(pin, new Geopoint(location));
_map.Children.Add(pin);
I've pulled this code from this blog post on maps in universal apps:
http://blogs.msdn.com/b/rbrundritt/archive/2014/06/24/how-to-make-use-of-maps-in-universal-apps.aspx
http://rbrundritt.wordpress.com

Similar Messages

  • HT4628 How do I get my mac to always show the join a network window with unsaved networks?

    Everytime I want to join a wifi hotspot or network where you have to sign in or buy a certain amount of network allowance, the 'Join a Network' window that used to pop up over the browser doesn't appear anymore, or if it does its so brief that I can't do anything on it before it disappears. Because of this neither of my browsers will load pages, or even go to a page for the wifi network.
    How do I fix this??

    Aaaaagh
    I solved it by turning Wi-Fi on on my iMac - previously I had communicated to the extreme via the time capsule.
    Not sure how to delete my original post otherwise I would.
    James

  • How Do I Get "Now Playing" to Always Show?

    Hello, when my iPod Classic remains idle while playing music, it will display the date and time. How do I change this setting? I'd like to be able to just flip open my case and see what's playing without having to click anything. Thanks!

    Yeah, I did some subsequent research after posting and looks like the jury is in on this. STINKS, but thank you for answering =)

  • How do i get the doc to always appear at the bottom of the screen even if i am in an application?

    how do i get the doc to always appear at the bottom of the screen even if i am in an application?

    try lion tweaks
    you will need to set gatekeeper to anywhere in system prefs security

  • How do I get rid of iMac always asking for login keychain

    How do I get rid of iMac always asking for login keychain, very annoying

    There is a utility called Keychain Access.  It is in your Applications/Utilities/ folder.  Keychain Access has tools to do "first aid" and a reset on your keychain.  Here are some Apple Support articles with instructions.
    http://support.apple.com/kb/PH7296
    and if that does not help (reset)
    http://support.apple.com/kb/TS1544

  • I just noticed that some of the movies I had in iTunes did not get transferred to the iPhone. The missing movies are shown as generic movie icons in the iTunes panel. How do I get the original movies to show up again and transfer to the iPhone?

    I just noticed that some of the movies I had in iTunes did not get transferred to the iPhone 5. The missing movies are shown as generic movie icons in the iTunes panel and are checked to select them. But they do not show up in iPhone Videos. How do I get the original movies to show up again and transfer to the iPhone? I recently upgraded Mac OS to 10.6.8

    1. iTunes won't offer cloud downloads for songs that it "thinks" are in your library, even if it "knows" the files are missing. If you've exhaustively searched for the missing files and there is no prospect of repair by restoring to them to their original locations, or connecting to new ones, then delete that tracks that display both the missing exclamation mark and are of media kind Purchased/Protected AAC audio file. Don't hide from iTunes in the cloud when asked, close iTunes, then reopen. You can download from the cloud links or iTunes Store > Quicklinks > Purchased > Music > Not on this computer > All songs > Download all.
    2. Why? Not sure, perhaps 3rd party tools or accidental key presses combined with previously hidden warning messages when trying to organize the library. There is a hint that using the feature to downsample media as it is synced to a device may also be involved, though I've not replicated it. Whatever the reason a backup would protect your media.
    tt2

  • How can I get my RSS feeds to show up on my iOS devices from iCloud?

    How can I get my RSS feeds to show up on my iOS devices from iCloud?  The RSS feeds now show up just fine on my iMac. 
    On my iMac the appear in a category at the same level as In Box, Sent, etc.  However the term RSS is in lighter grey like Mailboxes, On My Mac, Reminders.  I use Snow Leopard 10.7.5.  Any help will be appreciated as I'd like to read the feeds on my iPad 2 and iPhone 5 when I'm away from home.
    Thank you.

    This is helpful, but how do you get both devices to communicate to this single calendar via the iCloud?...
    You did not mention that it must be through iCloud.  But then, it can't really do so if you want to maintain separate Apple IDs.
    So you just set up an additional calendar on your devices.
    iPads, iPhone, Macs can show multiple calendars simultaneously.  I have my work calendar and several personal calendars all showing simultaneously on my iPad, Mac Mini and Macbook Pro.   In the case of my client, they didn't need multiple calendars.  They just were going to use the one shared calendar.  But I did setup the shared Google calendar and separate personal caldendars on their iPhones.  (e.g.: Husband's iPhone = husband's personal Mac Cal + shared Google Calendar.  Wife's iPhone = wife's personal Outlook for Windows Cal + shared Google Calendar.)

  • How do I get a PDF form to show its content using Mac 10.9.3, Safari 7.0.4 and Reader XI?

    I am using my Mac 10.9.3 with Adobe Reader XI in my Safari 7.0.4 Browser.  I do not have any trouble viewing PDF statements with my bank or other places OTHER than at Ford Credit.  Each time I log into Ford Credit to view the statements and attempt to download them, all I get on the screen is their blank form with headings and titles---no content.  When this happened once before over a year ago with my old Mac computer, I found my answer online by making Adobe Reader my default reader instead of Preview.  At that time it worked.  This time, its not working.  I contacted Ford Credit and they said their online Account Manager performs better using Internet Explorer.  The only answer they had for me was that advice or to contact Adobe.  So here I am looking for answers.  Any help provided is already appreciated.

    I do not know what to do or what to say or what to type to get someone familiar with the Adobe Reader to respond to my plea for help.  I am a 55 year old (aging fast) woman who is taking care of a father-in-law with dementia and a mother-in-law with Stage 4 Breast Cancer so I am already at my wits end when trying to get a program to work on my computer.
    Again, I ask.  How do I get the Adobe Reader to show content on a PDF statement at Ford Credit when all other PDF statements on other accounts work fine?  Ford Credit says it is a problem with Adobe Reader and that I am to come here for the answers.  I have 'googled' and have looked for similar posts on the Adobe Reader Community forums but I haven't found the answer yet.  
    Posting "[moved to the Adobe Reader (desktop) forum]", which I have yet to find, probably doesn't exist, or posting "Duplicate of https://forums.adobe.com/thread/1491128" does not provide an answer when an answer could have been provided at the same time taken to post those notations.  I don't get it or understand it---not what I would have done if the roles were reversed.
    If you have any heart, or any form of courtesy, please respond with an actual, workable answer to what is probably a simple solution to my problem.  And, then maybe, the answer will help someone else in the future who may be struggling with the same situation and will find it in a 'google' search and won't waste any more of your valuable time.  Or theirs.
    Thanks.

  • How do I get the PDF icon to show on all of my PDF files?

    how do I get the PDF icon to show on all of my PDF?

    Generally the icons are a selection that is set in MS Explorer (on the PC). Depending on the version of windows, there are various ways of getting at the properties related to an icon, including what application would open the file.

  • How do I get the Airplay Icon to show on the System Preferences of my MacBook Pro?

    How do I get the Airplay Icon to show on the System Preferences of my MacBook Pro? I want to be able to connect to my AppleTV.

    I looked at that already. I've done everything it says: check to make sure wireless is working, make sure airplay is enabled, make sure device and apple tv are on the same network blah blah. The icon just isn't there. Unless I skipped a step. AirPlay works when I use it in the music app and in the video app, I jus can't get mirroring to work. I was looking at some other threads and mirroring doesn't seem to be working for a lot of people. Maybe I jus have to wait for an update =\

  • How do I get the music icon to show up on the home page? in the settings icon it shows I have all my songs downloaded.

    How do I get the music icon to show up on the home page of the touch?  Under the settings icon it shows the songs are downloaded.

    - Move the Music app icon to the home page.  It is usually easer to do it on the computer than on the iPod itself. The manual says how to move the apps.
    iPod touch User Guide (For iOS 5.0 Software)
    - I do not undersand what: "Under the settings icon it shows the songs are downloaded." means.

  • How can you get a compilation album to show up as one album rather than be split up but song and artist?

    how can you get a compilation album to show up as one album rather than be split up by song and artist? I've got loads of albums on iTunes that are compliations and they are all mixed up by track/ artist. Even when you click 'show album' it still just shows the album title and then the artist in alphabetical order - so the album is replicated several times
    Can anyone tell me how to amalgamate compliation albums please?

    This web page will help you: http://samsoft.org.uk/iTunes/grouping.asp

  • I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date is created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date  created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    The Finder reports File information. The date and time of the photo are in the Photo's Exif metadata. The Finder has no awareness of this. All photos apps on any system do.
    Regards
    TD

  • How do I get a different URL to show up after an email form has been submitted?

    I have created a Form in DW CS5 and have some PHP server side code to mail it out.
    However, once the Submit button is pressed it refreshes back to the Form - How do I get a different page to show up after the Form is submitted? 
    I tried using a behavior - onSubmit - go to URL  -  that gets me to the page I want to go to but I guess it overrides the PHP Form Action because the email will not send.
    Any suggestions would be appreciated.

    Thank you for the response.
    In my form - I have tried inserting a hidden field with the Value set to the redirected page I want to go to
         <input type="hidden" name="MM_insert" value="http://www.website.com/page" />
    In my form Action PHP Include - I have inserted a header function with the redirected page I want to go to
         mail($to, $subject, $body, $headers);
         header('http://www.website.com/page');
    I have also checked for empty/extra spaces at the start and end of my php tags
    None of the above has got me to the redirected page I want to go to after the submit button is selected - the Form page continues to refresh.
    Any other suggestions on where I am missing the point would be greatly appreciated - thanks.

  • I have several pdfs on my iPad in iBooks. My iPhone shows only the categories, none of the documents. How can I get my iPhone to also show the documents that are on my iPad?

    I have several pdfs on my iPad in iBooks. My iPhone shows only the categories, none of the documents. How can I get my iPhone to also show the documents that are on my iPad?

    You will need to connect your iPad to your computer's iTunes and do File > Devices > Transfer Purchases to copy them over to your computer (that will copy PDFs and epubs that are in the iBooks app, not just actual ibooks), and you can then sync them to your iPhone. Or you might be able to open each PDF in iBooks on your iPad and use the share icon to email them to yourself and then use 'open in' in the Mail app on your iPhone to copy them to its iBooks app (if the PDF is protected then you may not get the email option via the share icon).
    The Settings > iBooks > Sync Collections setting doesn't copy items between devices, it just means that it a bookor PDF is on both devices and you move it into a collection on one device then it will be moved into the same collection on the other device

Maybe you are looking for

  • Not Intended to be a Mac vs. PC Debate

    Is it just me, or do other forum regulars here get the feeling that there are more basic problems with Photoshop CS6 being reported by people using the Mac platform than those with PC? I would have thought that if anything, since the Mac platform has

  • Some help required for my Zen

    My Zen (Sleek Photo) is constantly crashing, so a black screen. When it happens, none of the buttons are responsi've and I can only turn it off by pressing the reset button. After resetting, the same thing will happen again and again. Occasionally it

  • Crackling in Fatal1ty HS-1000, Windows 7

    Hi, I have a crackling in my HS-1000s that will occur if my computer has not been restarted for a while (putting it to sleep does not solve problem, but restarting does). It will sometimes take a few days for the crackling to come back, but it will s

  • Customizing the title bar of a title window

    hi, I want to resize the height of the titleBar of titleWindow, without using skin  How can I do this?

  • IC Alerts in CRM 2007

    Hi All, Im trying to create an alert in CRM 2007. Im not familiar with Rule Modeler to assign the alert so what I did is to use rule-based alerts (same as what we have in CRM5.0). Ive already added the event name to event repository CRM_IC_EVENT. It