<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Google Styled Maps not working as expected]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=97&amp;type=atom" />
	<updated>2016-02-29T19:30:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=97</id>
		<entry>
			<title type="html"><![CDATA[Re: Google Styled Maps not working as expected]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=406#p406" />
			<content type="html"><![CDATA[<p>Hello.</p><p>This is because Google Satellite Map has two layers (satellite and labels).<br />When you use «Provider - Custom», you use only one layer.<br />You can work around this using Online Maps API.</p><p>In Online Maps v2.4.0.21 beta we&#039;ve added a new feature - overlay for tileset.<br />Example attached.</p><p>For older versions of Online Maps, see:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/TilesetMapTilerOverlayExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-02-29T19:30:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=406#p406</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Google Styled Maps not working as expected]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=404#p404" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>(http): maps.google.com /maps/vt?pb=!1m5!1m4!1i10!2i293!3i389!4i256!2m3!1e0!2sm!3i338006535!3m14!2sen-US!3sUS!5e18!12m1!1e50!12m3!1e37!2m1!1ssmartmaps!12m4!1e26!2m2!1sstyles!2zcC52Om9mZixzLnQ6MXxwLnY6b24scy50OjZ8cC52Om9uLHMudDo4MnxwLnY6b24!4e0&amp;token=10347  &lt;---this looks like an overlay, has text but no terrain&gt;</code></pre></div><p>If I apply the {x}/{y}/{zoom} replacements in the obvious places to the first one and use it as a custom provider URL, I get the terrain image with zero styling. If I apply them to the second url and use that, it shows an obviously malformed map (some features, no terrain, etc.).</p><p>Any thoughts on how to get the proper map tiles, with the style information overlaid properly?</p>]]></content>
			<author>
				<name><![CDATA[stephen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=99</uri>
			</author>
			<updated>2016-02-29T16:32:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=404#p404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Google Styled Maps not working as expected]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=403#p403" />
			<content type="html"><![CDATA[<p>Using Chrome dev tools, I then opened up the Network tab, and noted the following three url&#039;s per tile:</p><div class="codebox"><pre><code>(http): khm1.googleapis.com /kh?v=197&amp;hl=en-US&amp;&amp;x=293&amp;y=389&amp;z=10  &lt;--this is the terrain image&gt;</code></pre></div><p>And now I have to wait at least 60 seconds between posts. Also painful.</p>]]></content>
			<author>
				<name><![CDATA[stephen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=99</uri>
			</author>
			<updated>2016-02-29T16:31:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=403#p403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Google Styled Maps not working as expected]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=402#p402" />
			<content type="html"><![CDATA[<p>I&#039;m brand new to Online Maps so this might be a user error, but from what I see during troubleshooting it&#039;s not working as expected.</p><p>I&#039;m trying to make a very trimmed down satellite map with nothing but administrative features (country/state/province lines), so I created the following style using the <a href="http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html">API styler</a>:</p><p>Google Maps API v3 Styled Maps JSON<br /></p><div class="codebox"><pre><code>[
  {
    &quot;stylers&quot;: [
      { &quot;visibility&quot;: &quot;off&quot; }
    ]
  },{
    &quot;featureType&quot;: &quot;administrative&quot;,
    &quot;stylers&quot;: [
      { &quot;visibility&quot;: &quot;on&quot; }
    ]
  },{
    &quot;featureType&quot;: &quot;water&quot;,
    &quot;stylers&quot;: [
      { &quot;visibility&quot;: &quot;on&quot; }
    ]
  },{
    &quot;featureType&quot;: &quot;landscape.natural&quot;,
    &quot;stylers&quot;: [
      { &quot;visibility&quot;: &quot;on&quot; }
    ]
  }
]</code></pre></div><br /><p>Unrelated: the forum software would not let me post this message due to too many links. so I had to post the urls above in separate messages. Painful.</p><div class="codebox"><pre><code>Warning! The following errors must be corrected before your message can be posted:
Too more links in message. Allowed 1 links. Reduce number of links and post it again.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stephen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=99</uri>
			</author>
			<updated>2016-02-29T16:30:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=402#p402</id>
		</entry>
</feed>
