Showing large image at original size on mobile devices - html

I have a very high resolution 'cartoon' road map with a number of locations also drawn on. Users can click on locations drawn on the map to navigate to related pages.
The map is not drawn to scale at all hence I decided to map co-ordinates on the image to create the required links rather than as a GMaps overlay or similar. This works assuming the user has a desktop which shows the image to the full width of a PC monitor, but I'm struggling with how to serve such a high resolution (approx 4000px x 3000px) image in a way which is intuitive for mobile users to navigate and still be able to see sufficient detail (ie. showing the map at original size but with perhaps pinch/drag functionality similar to an actual GMap). Any suggestions?

Related

Taking screenshot with custom coordinates

I am working on a libgdx project. I have to take screenshot but not all the screen, only specific area of the screen. This area can be bigger than screen size. How can I do that?
You can zoom out your camera, position it were you want it, take screenshot, zoom back in and set the position back. The player won't see this.
If that doesn't work, render one frame with the zoomed out camera, take screenshot and then zoom back in. The player will only see a 'flash'.
Or just make some sort of animation, where you zoom out and back in.

What live tile template does the official calendar app use in WP8

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

Can we determine where a Live Tile was tapped?

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.

Change DPI with Javascript Google Maps Api

I need to create a 80x80cm (or 33inchx33inch) map with Google Maps. This map will be printed and exhibited, so the higher DPI the better. Actually, in printing, a 300DPI is the minimum.
Now, I'm using the Javascript API in order to create the map I want :
- change the mapOptions with an array of styles with various colors
- add a Transit Overlay in order to have the map of the urban trains added over the map (see this aautar.digital-radiation.com/blog/?p=3761)
- add polygons as a link to KML URL to one of my maps
If you want to see the result : http://www.tellnet.fr/blog/test.html (it's very long to download since it's a 5000x5000 picture).
The problem is that, at the Scale level I want (with not too many details), the big picture I get is a 5000x5000, which gives a 150DPI only printable file.
To obtain a 10000x10000 picture as I would to print a 80x80cm map at 300 DPI, I need to :
- either my map zoom once, but then I've got soooo many details, that will be printed super tiny
- or change the DPI of the map, asking Google Maps to double it.
It would basically give me the same map at the same scale, but with thinner lines and texts (making a 10000x10000 pictures).
I know this is possible with the static maps Api, change the Scale value to 2 (see https://developers.google.com/maps/documentation/staticmaps/?hl=fr#scale_values).
The problem is that, this is the static maps API, so please can someone tell me if :
- it's either possible to do all the above things with the static API
- or change the "scale" value (ie the DPI value) with the Javascript API.
I also tried to change the meta viewport value, but this only works with mobile devices... (I searched for all solutions, now I'm blocked!)

Clickable markers on GTileLayerOverlay

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 .