<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>openstreetmap &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/openstreetmap/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Change the sea/ocean color of OpenLayers (OSM) map</title>
		<link>/2009/08/07/change-the-sea-ocean-color-of-openlayers-osm-map/</link>
		<comments>/2009/08/07/change-the-sea-ocean-color-of-openlayers-osm-map/#respond</comments>
		<pubDate>Fri, 07 Aug 2009 06:15:48 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[openalyers]]></category>
		<category><![CDATA[openstreetmap]]></category>
		<category><![CDATA[thematicmapping]]></category>
		<category><![CDATA[white colored ocean]]></category>

		<guid isPermaLink="false">/?p=725</guid>
		<description><![CDATA[The ocean is blue! Yeah, that should sound OK, because as we all know the ocean is blue, but here I mean the ocean is blue on the maps of OpenStreetMap.org. This map uses pre-generated tiles with parts of the world map and using a tool such OpenLayers javascript library you can construct a geo &#8230; <a href="/2009/08/07/change-the-sea-ocean-color-of-openlayers-osm-map/" class="more-link">Continue reading <span class="screen-reader-text">Change the sea/ocean color of OpenLayers (OSM) map</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/" rel="bookmark" title="OpenLayers disable mouse wheel on zoom">OpenLayers disable mouse wheel on zoom </a></li>
<li><a href="/2009/08/06/openlayers-vectors-ie-bug/" rel="bookmark" title="OpenLayers vectors IE bug!">OpenLayers vectors IE bug! </a></li>
<li><a href="/2010/03/19/openlayers-can-be-faster/" rel="bookmark" title="OpenLayers Can Be Faster!">OpenLayers Can Be Faster! </a></li>
<li><a href="/2009/03/20/css-color-units/" rel="bookmark" title="CSS color units">CSS color units </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>The ocean is blue!</h2>
<p>Yeah, that should sound OK, because as we all know the ocean is blue, but here I mean the ocean is blue on the maps of <a title="OpenStreetMap" href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap.org</a>. This map uses pre-generated tiles with parts of the world map and using a tool such OpenLayers javascript library you can construct a geo map. The problem is that those tiles are always with blue ocean, as you can see on the picture below:</p>
<div class="mceTemp">
<dl id="attachment_726" class="wp-caption alignnone" style="width: 279px;">
<dt class="wp-caption-dt"><a href="/wp-content/uploads/2009/08/openstreetmap-tile.png"><img class="size-full wp-image-726" title="openstreetmap-tile" src="/wp-content/uploads/2009/08/openstreetmap-tile.png" alt="a openstreetmap tile with part of east asia" width="269" height="273" /></a></dt>
<blockquote>
<dd class="wp-caption-dd">a openstreetmap tile with part of east asia</dd>
</blockquote>
</dl>
</div>
<h2>Well those are generated, how can I change the ocean color?</h2>
<p>There is no way to change it, except you modify the .xml file from which those tiles are generated, but so far I haven&#8217;t done it.</p>
<p>Since I need a vector (thematic) map, such as this on <a title="thematicmapping" href="http://thematicmapping.org/" target="_blank">http://thematicmapping.org/</a> with geoJSON formated borders I noticed that one you&#8217;ve a vector map, there&#8217;s no loading of the tiles and thus &#8211; no blue color of the ocean. You can see an example here:</p>
<p><a href="/wp-content/uploads/2009/08/openlayers-with-white-ocean.png"><img class="alignnone size-full wp-image-727" title="openlayers-with-white-ocean" src="/wp-content/uploads/2009/08/openlayers-with-white-ocean.png" alt="" width="430" height="220" srcset="/wp-content/uploads/2009/08/openlayers-with-white-ocean.png 430w, /wp-content/uploads/2009/08/openlayers-with-white-ocean-300x153.png 300w" sizes="(max-width: 430px) 100vw, 430px" /></a></p>
<p>emq26y57vz</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/" rel="bookmark" title="OpenLayers disable mouse wheel on zoom">OpenLayers disable mouse wheel on zoom </a></li>
<li><a href="/2009/08/06/openlayers-vectors-ie-bug/" rel="bookmark" title="OpenLayers vectors IE bug!">OpenLayers vectors IE bug! </a></li>
<li><a href="/2010/03/19/openlayers-can-be-faster/" rel="bookmark" title="OpenLayers Can Be Faster!">OpenLayers Can Be Faster! </a></li>
<li><a href="/2009/03/20/css-color-units/" rel="bookmark" title="CSS color units">CSS color units </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/08/07/change-the-sea-ocean-color-of-openlayers-osm-map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenLayers vectors IE bug!</title>
		<link>/2009/08/06/openlayers-vectors-ie-bug/</link>
		<comments>/2009/08/06/openlayers-vectors-ie-bug/#respond</comments>
		<pubDate>Thu, 06 Aug 2009 06:55:19 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[openlayers]]></category>
		<category><![CDATA[openstreetmap]]></category>
		<category><![CDATA[vector]]></category>
		<category><![CDATA[VML]]></category>

		<guid isPermaLink="false">/?p=721</guid>
		<description><![CDATA[OpenLayers and OpenStreetMap If you&#8217;re not familiar with OpenLayers library, in breve this is a JavaScript library which interacts with a tile server such as this of OpenStreetMap.org Vectors Because it&#8217;s JavaScript OpenLayers library it renders different types of vectors when it becomes the case of vectors. It tries the VML way, but as you &#8230; <a href="/2009/08/06/openlayers-vectors-ie-bug/" class="more-link">Continue reading <span class="screen-reader-text">OpenLayers vectors IE bug!</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/02/09/optimizing-openlayers-speed-up-markers-load-time/" rel="bookmark" title="Optimizing OpenLayers. Speed up markers load time!">Optimizing OpenLayers. Speed up markers load time! </a></li>
<li><a href="/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/" rel="bookmark" title="OpenLayers disable mouse wheel on zoom">OpenLayers disable mouse wheel on zoom </a></li>
<li><a href="/2010/09/24/2xjquery-select-a-selector/" rel="bookmark" title="2xjQuery: Select a Selector">2xjQuery: Select a Selector </a></li>
<li><a href="/2010/03/19/openlayers-can-be-faster/" rel="bookmark" title="OpenLayers Can Be Faster!">OpenLayers Can Be Faster! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>OpenLayers and OpenStreetMap</h2>
<p>If you&#8217;re not familiar with <a title="OpenLayers" href="http://www.openlayers.org/" target="_blank">OpenLayers</a> library, in breve this is a JavaScript library which interacts with a tile server such as this of <a title="openstreetmap" href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap.org</a></p>
<p><a href="/wp-content/uploads/2009/08/open-street-map.png"><img class="alignnone size-full wp-image-722" title="open-street-map" src="/wp-content/uploads/2009/08/open-street-map.png" alt="" width="430" height="276" srcset="/wp-content/uploads/2009/08/open-street-map.png 430w, /wp-content/uploads/2009/08/open-street-map-300x192.png 300w" sizes="(max-width: 430px) 100vw, 430px" /></a></p>
<h2>Vectors</h2>
<p>Because it&#8217;s JavaScript OpenLayers library it renders different types of vectors when it becomes the case of vectors. It tries the VML way, but as you may know not every browser support it.  Actually everything works fine in every browser, and that&#8217;s the good part of OpenLayers, which is one of the best JavaScript organized project I&#8217;ve worked with.</p>
<p><img class="alignnone size-full wp-image-723" title="openlayers-vectors" src="/wp-content/uploads/2009/08/openlayers-vectors.png" alt="" width="430" height="253" srcset="/wp-content/uploads/2009/08/openlayers-vectors.png 430w, /wp-content/uploads/2009/08/openlayers-vectors-300x176.png 300w" sizes="(max-width: 430px) 100vw, 430px" /></p>
<p>The problem is that if you&#8217;ve something in the DOM with z-index over the vector layer IE&#8217;s giving problems because as it appears it cannot be rendered.</p>
<blockquote><p>The solution is to draw the layer but skip the .addLayer before the vectors should be seen. You than remove the DOM element, which is over the vector layer you set .setVisibility(true) and the layer appears on the stage.</p>
<p>So far this is the only solution I got, but there may be others.</p></blockquote>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/02/09/optimizing-openlayers-speed-up-markers-load-time/" rel="bookmark" title="Optimizing OpenLayers. Speed up markers load time!">Optimizing OpenLayers. Speed up markers load time! </a></li>
<li><a href="/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/" rel="bookmark" title="OpenLayers disable mouse wheel on zoom">OpenLayers disable mouse wheel on zoom </a></li>
<li><a href="/2010/09/24/2xjquery-select-a-selector/" rel="bookmark" title="2xjQuery: Select a Selector">2xjQuery: Select a Selector </a></li>
<li><a href="/2010/03/19/openlayers-can-be-faster/" rel="bookmark" title="OpenLayers Can Be Faster!">OpenLayers Can Be Faster! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/08/06/openlayers-vectors-ie-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
