I want to send a tile notification from one device to another.
Is it possible to send an image from the phone's isolated storage in a tile notification?
Unfortunately not.
The images on tiles must either be on the device that is displaying them or online. As only a Uri is passed in the notification message it's not possible to include an encoded image in the payload.
If you want to capture an image on one device and then display it on another it will first need to be uploaded to a public location on the web or sent between the devices in another way.
Related
I need to just show the map on my physical device without any functionality, but each map library needs an API key or something like that, maybe someone knows any use cases for any map library for simplicity? thx!
You need an API key if you want to use the map services.
Alternatively, if you just want to point to a given pleace and display a map showing that place:
Go to the map website with your browser (make sure to have the place you want in the middle of screen)
Grab the address (url) from the browser
In React Native, use an instance of a Webview targeting the URL just copied.
The Webview inside your app will render the map as your browser does.
I am using Google maps in an Ionic application (which connects to NodeJS/Express) for ipad.
In the app, I am displaying markers for the addresses provided by the user. My use case is such that users need to view the google map with markers when they are offline. These are primarily field users who do not have access to internet when on the field.
The approach I was thinking was to have users launch the google maps with markers set, in the ionic app (when they are connected to the internet) and provide a save button. Once they click on the save button, we somehow save an image/screenshot of the maps view on the device.
When the user opens the map while offline we load this image instead.
What would be the best way to save the image of the map shown in a Ionic app? Is there another approach which I should be looking at?
Thanks.
option 1: I think here you can use Google Static Maps api which returns image files you can call this api when user clicks on save button (obviously when you have internet connection), and cache the image locally. Just go through the Google Static Maps api
option 2: I don't prefer this but worst case if nothing works for you just take a screen shot of the user's screen and save that image. Here is the cordova plugin to take screenshots cordova-screenshot
Happy coding :)
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
So I would like to use a URL to retrieve and display ONLY the users CURRENT LOCATION.
For example: A user with a smartphone (iPhone, Android, etc) opens a link [http://maps.google.com/CURRENTLOCATION] on their phone, and it shows their current location on the user's device in either Google Maps app or browser, as reported by their GPS/wireless location. The actual link itself should should remain static, and display the location wherever they are.
Is this possible?
Thanks in advance!
If you have the lat/long coordinates (which I suppose you get through the gps/wireless device), you can use something like this:
http://maps.google.de/maps?q=loc:48.0000,9.000
which opens the Google Maps website with the coordinates N48.0 E9.0 (as decimal coords) centered.
Or, if you need a static map (and not a full fledged JavaScript map), use this link and adjust the values inside the URL:
http://maps.google.com/maps/api/staticmap?center=48.00,9.00&zoom=14&size=512x512&maptype=roadmap&markers=color:blue|48.0,9.0&sensor=true
Valid values for the arguments are:
for maptype: roadmap, terrain, satellite
for zoom: 1 to 20
This is discussed front and center in the Google Maps geolocation API: Detecting the User's Location
According to the documentation, the user will need using an HTML5 equipped browser for this to work. You will need to write the Javascript which looks pretty vanilla.
Edit: This only works if you are using your own domain and have implemented the Maps API (which is really simple), not Google's own maps.google.com