I was curious if it's possible to determine, in Windows Phone 8, where in the area of a Live Tile was a tap made. So if a Live-Tile is tapped in the lower right, would we be able to somehow determine this when it passes it's function to the app? Such as maybe x,y pos, or color, offset, any info at all?
The only information the OS gives you about the tile that was tapped is the URL that is associated to it. While it allows you to guess which tile was tapped, it doesn't give any relevant information about how the tile was tapped.
One workaround could be to use small tiles. You can simulate one medium tile by creating 4 small tiles, and you will be able to know which one of the four was tapped.
Related
When I pan the map with the mouse, I want the visible layers to update (before I release the mouse). Ideally, it would actually be preloaded, like the basemaps, so that you don't have to see the unloaded edge of the layers.
Example: Say I have a layer which is a solid red block over the entire map. When I pan, the screen moves so that you see that the red layer doesn't extend to infinity; it's actually covering only the viewport. It now appears as a rectangle which is moving around the screen as you pan, until you release. I want the user to be able to pan and only ever see red. This is a contrived example, but it's the functionality I want.
What doesn't work: I have already tried running a layer.refresh() command on the map's pan event. That won't work until after you release the mouse.
Well, As I am understanding above requirement. you want to add a layer on the ESRI map; which will refresh every time you pan or zoom.
In this case no need to add the layer as ArcGISDynamicMapServiceLayer. Simply add the layer as a feature layer in ondemand mode.
To know about feature layer and its mode please click here...
As we know it request to update layer automatically whenever you change extent of the map.
Hoping I gave you the hint which you are looking for... :)
I want to put here map on tile, is it possible? I am using flip tile?
I want to put map current location on flip tile (back part).
As said in comments you would need to use the WriteableBitmap to get the map written to an image. And for that task there is example available Windows Phone 8 Examples: Maps Samples at Github
So you could start by looking into the SaveMapImageEx example in there.
I am trying to use a live tile layout similar to the official Windows Phone 8 "Calendar" app for my app's live tile and I am also trying to update the lock screen notification. I was originally planning on using the Iconic tile template because it seems to be the most straightforward means to display text, but realized that it does not display any text unless the user uses the wide tile size. The other option seems to be flip tile, but I want the text to be displayed on the front of the tile, not on the flip side. I considered using the cycle tile template and generate the image to show for various tile sizes, but seems like I can't update the lock screen notification if I use that. Does anyone know how I can display text on a medium sized tile and also have the same text appear on the lock screen notification?
It does not use a publicly available tile template. You would have to recreate the template using an image, for example as in http://blog.anthonybaker.me/2013/05/wp8-tip-creating-live-tiles-with.html
I am new in windows phone 8 development. I have a map containing the layer where I can dragging the line from one point to another, but the problem arise is whenever I am going to draw line over map the whole map is moving.
How should I stop just the map scrolling with out make disable the other user interaction features of map control?
Set one of these properties to false, whitchever suits You best:
I have a web application that needs to display 30,000 markers on a map at the same time. I don't want to use any kind of clustering. I need them to all be displayed.
I also need them to be clickable. The user can click on each point and a popup will come up with information about that point. Even at a low zoom level when there are thousands of markers in a single 256x256 square, the user needs to be able to click on them. It may be cumbersome for the user to click on a point thats bunched up with hundreds of other points, but if there happens to be one marker in the middle of nowhere, I want the user to be able to click on it right there instead of having to zoom in.
How do I do this? I know it's possible because I watched a video on google video where this guy creates a GTileLayerOverlay app that had clickable markers. He didn't explain how it was done though.
Is my only option to just remove the GTileLayerOverlay at high zoom levels and replace it with a true GMarker layer? I really don't want to do that. It seems over engineering to me.
If you were me, how would you go about this?
I found this example is in the Google Maps API Demo Gallery:
Clickable Tile Layer
This example creates a custom map type (GMapType) that shows regional borders and squares for county centers. When the squares are clicked, an info window opens with information about that county. The clickability is accomplished by passing in information about clickable pixel bounds in the cookies attached to the tiles, and doing a client-side check on mouseover for whether the mouse position was within the pixel bounds.
Here's some commentary on his method.
I don't have any experience with GTileLayOverlays, but I believe it is possible to accomplish what you're trying to do without using GMarkers.
Would it be possible to utilize clustering if each cluster could bring up a list of the markers it represents? It seems like having 30,000 markers visible at once would be visually confusing and difficult to navigate .