{"id":8687,"date":"2023-02-28T18:54:25","date_gmt":"2023-02-28T18:54:25","guid":{"rendered":"https:\/\/www.use-snip.com\/kb\/?post_type=ht_kb&#038;p=8687"},"modified":"2023-05-22T16:44:17","modified_gmt":"2023-05-22T16:44:17","slug":"google-map-changes-updating","status":"publish","type":"ht_kb","link":"https:\/\/www.use-snip.com\/kb\/knowledge-base\/google-map-changes-updating\/","title":{"rendered":"Google Map Changes, updating"},"content":{"rendered":"<p>In mid-February the Google Map API changed and this in turn affected rendering many of the Map images used in <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span>. This article describes how to easily edit one of your <strong><span style=\"color: #0000ff;\">SNIP<\/span><\/strong> support files to restore the map functionality.\u00a0 This problem is also resolved by simply updating to <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> <strong>Rev 3.09<\/strong> or later.<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>Update &#8211; May 12th<\/strong><\/span><\/h2>\n<p style=\"text-align: center;\">They (Google) did it to us again!<br \/>\nNow they removed Rev 3.00 support (without warning) on May 10th,<br \/>\nSo we must move to the Google API Rev 3.51<br \/>\nYou need do the steps below to get the general map to work for you again.<br \/>\nThe next release of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> (Rev 3.10) will have this change as part of the installer.<\/p>\n<h2>Affected parts of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span><\/h2>\n<p style=\"padding-left: 40px;\">The &#8220;general&#8221; map was affected and no longer renders the base map, showing only an empty page frame, the map legend at the bottom of the page, and the two combo boxes that allow selecting either Base Stations or Users as the map center point.\u00a0 No base map images are displayed.<\/p>\n<h2>Non-Affected parts of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span><\/h2>\n<p style=\"padding-left: 40px;\">Maps drawn with the <a href=\"https:\/\/www.use-snip.com\/downloads\/snip_web\/\">Web API<\/a> (a <span style=\"color: #993300;\"><em><strong>Pro <\/strong><\/em>model <\/span>feature).<\/p>\n<p style=\"padding-left: 40px;\">Maps showing the Base Station and Its connected users with a <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/web-api-base-reports\/\">baseline drawn<\/a> between each.<\/p>\n<p style=\"padding-left: 40px;\">Maps showing the last point of an <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/question-what-is-an-ntrip-client\/\">NTRIP Client<\/a> as part of a connection report.<\/p>\n<p style=\"padding-left: 40px;\">Maps showing the path of an NTRIP Client (rover devices) with <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/web-api-plots-with-themes\/\">various themes<\/a>.<\/p>\n<p style=\"padding-left: 40px;\">Maps showing the location of a Base Station from the <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/status-button-report\/\">Status report<\/a> window.<\/p>\n<h2>How to fix this.<\/h2>\n<p>First, we recommend you always <strong>upgrade<\/strong> to the newest release, which resolves this issue and provides a number of other features and improvements.\u00a0 It is also a best practice to make <a href=\"https:\/\/www.use-snip.com\/kb\/knowledge-base\/back-up-settings\/\">a backup<\/a> of all your settings before starting; use the menu item <em><strong>Misc<\/strong> \u21d2<\/em> <em><strong>Back Up<\/strong><\/em> \u21d2 <strong><em>Back Up Now<\/em><\/strong>\u00a0 to do this.\u00a0 <em>[Rev 3.09 has been released at this time, install that and you are done.]<\/em><\/p>\n<p>These instructions apply ONLY to <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> Release <strong>3.08<\/strong>, although they will also work on earlier editions of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span>.<\/p>\n<p>You do not need to <strong>stop <\/strong><span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> in order to make these edits, but you will need to <strong>restart <\/strong><span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> to have them take effect (this file is read only once during start-up).<\/p>\n<h3>Please do the following:<\/h3>\n<p>Find the file <strong>MapView.html<\/strong>\u00a0 It is normally found at: <strong>C:\\Program Files (x86)\\SNIP\\bin\\map\\MapView.html<\/strong>\u00a0\u00a0 This is the file you will edit.\u00a0 Make a copy before starting in case you make a mistake.\u00a0 You can edit this with any common text editor, such as Notepad (or <a href=\"https:\/\/notepad-plus-plus.org\/\" target=\"_blank\" rel=\"noopener\">NotePad++<\/a> which is a free alternative with much better features).<\/p>\n<h4 style=\"text-align: center;\">For users of <span style=\"color: #0000ff;\"><strong>SNIP Rev 3.08<\/strong><\/span> and all prior revisions:<\/h4>\n<p>Find and Edit the line below (this is line 42 of the file)<\/p>\n<pre> &lt;script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=XXX\"&gt;&lt;\/script&gt;<\/pre>\n<p>Replace it with this line<\/p>\n<pre> &lt;script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=XXX&amp;v=3.51&amp;callback=Function.prototype\"&gt;&lt;\/script&gt;<\/pre>\n<p>Save the file.\u00a0 Restart <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span>.<\/p>\n<h4>For users of <span style=\"color: #0000ff;\"><strong>SNIP Rev 3.09<\/strong><\/span><\/h4>\n<p style=\"text-align: center;\">Find and Edit the line below (this is line 45 of the file)<\/p>\n<pre> &lt;script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=XXX&amp;v=3&amp;callback=Function.prototype\"&gt;&lt;\/script&gt;<\/pre>\n<p>Replace it with this line<\/p>\n<pre> &lt;script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=XXX&amp;v=3.51&amp;callback=Function.prototype\"&gt;&lt;\/script&gt;<\/pre>\n<p>Save the file.\u00a0 Restart <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span>.<\/p>\n<p>What you have done by the above is force the map to load and use a specific version of the API where the problem does not occur (version 3.51).\u00a0 The prior default setting used the most current &#8216;weekly&#8217; release from Google, which implemented the new changes that caused these problems.\u00a0 Version\/revision 3.52 caused the original problem, and all prior revisions all also worked. The above selects 3.51 for use (because they dropped 3.00, which we switched to using the 1st time, after stating it would be supported). [<em>Aside<\/em>; future releases of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span>, those beyond Rev 3.09, will in fact use newer versions and therefore the above file should not be edited.]<\/p>\n<p>Again, you must Restart <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> this this to take effect. <span style=\"color: #0000ff;\"><strong><br \/>\n<\/strong><\/span><\/p>\n<p>Confirm it works. Try the map (menu item <em><strong>Reports<\/strong>\u00a0<\/em>\u21d2 <em><strong>Map View&#8230;<\/strong><\/em> ) and ensure you now see a base map. [<em>Aside<\/em>: When <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> first starts it does not have the correct location of every Base Station.\u00a0 This can take as long as 90 seconds, after which the parsed Base Stations are drawn on the map with precise locations.]<\/p>\n<p>Consider updating to the most current release of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> as a better way to resolve this issue.<\/p>\n<h3 style=\"text-align: right;\">More Details<\/h3>\n<p>As you can no doubt tell from the tone of this article, we more than a little annoyed with the Goggle Map API team for these surprise changes.\u00a0 If you want to see their side of the story (in other words why they caused deployment problems for thousands of developers by disabling support for long term releases) see this article on the new versioning policies: https:\/\/developers.google.com\/maps\/documentation\/javascript\/versions\u00a0\u00a0 The primary takeaway is that we can no longer relay on them to provide a stable API for <strong><span style=\"color: #0000ff;\">SNIP<\/span><\/strong> Caster users.\u00a0 Many of our deployments do not care to update their otherwise stable system every other month when the latest <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> release comes out. As a reaction to this, we will soon be moving to a new system where the key map templates are loaded from one the <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> support servers when the local copy of <span style=\"color: #0000ff;\"><strong>SNIP<\/strong><\/span> first starts.\u00a0 This should eliminate the need for unplanned updates if the Goggle Map API team makes any further arbitrary changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In mid-February the Google Map API changed and this in turn affected rendering many of the Map images used in SNIP. This article describes how to easily edit one of your SNIP support files to restore the map functionality.\u00a0 This problem is also resolved by simply updating to SNIP Rev [&hellip;]<\/p>\n","protected":false},"author":13,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"ht-kb-category":[286],"ht-kb-tag":[533,532,288,534],"class_list":["post-8687","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-release-history","ht_kb_tag-edits","ht_kb_tag-java","ht_kb_tag-map","ht_kb_tag-patch"],"_links":{"self":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/comments?post=8687"}],"version-history":[{"count":20,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8687\/revisions"}],"predecessor-version":[{"id":8763,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb\/8687\/revisions\/8763"}],"wp:attachment":[{"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/media?parent=8687"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=8687"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.use-snip.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=8687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}