I have a Windows Forms application with a WebBrowser control. I am using Google Maps API v3 for displaying a map on the browser control.
The map displays the path traveled using markers and polylines. The area in which the location is shown is limited (the path traveled is only in a specific area). I know that Google caches the map tiles.
Suppose the internet disconnects for a couple of minutes due to network issues, the map is visible and pan-able for the area which was traveled (and cached). But the Google Maps API will not work to place a marker. In such a situation, while the network is reconnected, how to place markers on the map?
You can use gmapcatcher -offline maps viewer-
GMapCatcher is an offline maps viewer. It can display maps from many providers
Read this for the complete information : GMAPCATCHER
Related
I am pretty new to google maps. In my commercial project application i need to write a module which would generate and open google maps url with planned route for drivers. I've read a lot that i need google api, nevertheless just few minutes ago i found this official page: google developer's guide
Google claims there: "You don't need a Google API key to use Maps URLs.".
Does it mean when my commercial app will be generating routes urls which would open either google map application (for instance on android) or if there is no google map installed on device - then it will open webbrowser accordingly, does it mean in this case that this is fuly legit and no google api key is required?
Yes, your understanding is correct, as per the official documentation You don't need a Google API key to use Maps URLs.. Maps URLs can be used to build a cross-platform URL to launch the Google Maps application and perform searches, get directions, display map views or panoramic images.
Maps URLs are different from the Google Maps Platform APIs itself which requires an API key to work. API keys are required to keep track of your Google Maps API intended usage.
This is an official documentation from Google, therefore, should be credible.
I am building an application that can use Google, Bing and Azure maps to display my data.
I'm now at the stage that I need to look into how to display these maps when I don't have an internet connection.
Do you know how I can use these map services while off-line?
Is it possible to cache the information perhaps?
If you are targeting the Windows platform, the UWP map control fully supports offline usage.
https://learn.microsoft.com/en-us/windows/uwp/maps-and-location/display-maps
Using the bing maps web control offline is not supported (and storing bing maps tiles offline is against the terms of use).
In my Windows 8.1 Application, I tried to integrate Bing Map control and provided my Map key but when I am running the application it's just showing blocked icon/black screen.
Event I tried downloading Bing Maps sample from MSDN, but in that also I am getting the same error after provding bing map key. So I am not sure what's the actual issue, is issue with my bing map key?
Here's the screenshot of how I created my Key from Bing Map portal:
And below is the screenshot that I see on screen when I run my application:
Bing Map Block Error:
Ok, there are certain countries in which the Windows 8.1 map control is disabled as documented here: https://msdn.microsoft.com/en-us/library/jj670541.aspx You can get around this by setting the HomeRegion property of the map to a country that isn't blocked. For example HomeRegion="US"
I have mapped tour on google maps, same thing I can get on bing maps to, how can I draw the same route in my WP8 application via internet connection?
Tour
Download the belonging KML file from Google Maps. There is a link on the route panel.
Write a XML parser to interpret the coordinates in the KML file.
Read the Guide to the Windows Phone 8 Maps API on how to display a route.
I am thinking about working with remote data and receive or send data actually in external web sites. exists a large amount of examples in World Wide Web are working. For example: free online web tools like web stats OR Google's AdSense .... .you know in such web services some code will generate for publishers and the publisher put generated code in her BODY of web page document(HTML file) and the system after that will work. we can have count of visits for home pages, count of clicks on advertisements and so on.now this is my question: How such systems Work? and how can I investigate and search about them to find out how to program them? can you suggest me some keywords? Which Titles should I looking for? and which Technologies is relevant to this kind of programming? Exactly I want to find some relevant references to learn and start some experiences on these systems. if my Q is not Clear I will Explain it more if you want...Help me I am confused.
Consider that I am an Programmer want to program such a systems not to use them.
There are a few different ways to track clicks.
Redirection Tracking
One is to link the advertisement (or any link) to a redirection script. You would normally pass it some sort of ID so it knows which URL it should forward to. But before redirecting the user to that page it can first record that click in a database where it can store the users IP, timestamp, browser information, etc. It will then forward the user (without them really knowing) to the specified URL.
Advertisement ---> Redirection Script (records click) ---> Landing Page
Pixel Tracking
Another way to do it is to use pixel tracking. This is where you put a "pixel" or a piece of Javascript code onto the body of a webpage. The pixel is just an image (or a script posing as an image) which will then be requested by the user visiting the page. The tracker which hosts the pixel can record the relevant information by that image request. Some systems will use Javascript instead of an image (or they use both) to track clicks. This may allow them to gain slightly more information using Javascript's functions.
Advertisement ---> Landing Page ---> User requests pixel (records click)
Here is an example of a pixel: <img src="http://tracker.mydomain.com?id=55&type=png" />
I threw in the png at the end because some systems might require a valid image filetype.
Hidden Tracking
If you do not want the user to know what the tracker is you can put code on your landing page to pass data to your tracker. This would be done on the backend (server side) so it is invisible to the user. Essentially you can just "request" the tracker URL while passing relevant data via the GET parameters. The tracker would then record that data with very limited server load on the landing page's server.
Advertisement ---> Landing Page requests tracker URL and concurrently renders page
Your question really isn't clear I'm afraid.
Are you trying to find out information on who uses your site, how many click you get and so one? Something like Google Analytics might be what you are after - take a look here http://www.google.com/analytics/
EDIT: Adding more info in response to comment.
Ah, OK, so you want to know how Google tracks clicks on sites when those sites use Google ads? Well, a full discussion on how Google AdSense works is well beyond me I'm afraid - you'll probably find some useful info on Google itself and on Wikipedia.
In a nutshell, and at a very basic level, Google Ads work by actually directing the click to Google first - if you look at the URL for a Google ad (on this site for example) you will see the URL starts with "http://googleads.g.doubleclick.net..." (Google own doubleclick), the URL also contains a lot of other information which allows Google to detect where the click came from and where to redirect you to see the actual web site being advertised.
Google analytics is slightly different in that it is a small chunk of JavaScript you run in your page, but that too basically reports back to Google that the page was clicked on, when you landed there and how long you spend on a page.
Like I said a full discussion of this is beyond me I'm afraid, sorry.