<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Kukkaisvoima version 7" -->
<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/"
>
<channel>
<title>vmx: OpenLayers</title>
<link>https://vmx.cx/cgi-bin/blog/index.cgi</link>
<description>Blog of Volker Mische</description>
<pubDate>Sat, 28 Apr 2012 22:35:25 +0200</pubDate>
<lastBuildDate>Sat, 28 Apr 2012 22:35:25 +0200</lastBuildDate>
<generator>http://23.fi/kukkaisvoima/</generator>
<language>en</language>
<item>
<title>WhereCampEU 2012 Amsterdam
</title>
<link>https://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2012%3A2012-04-28%3Aen%2COpenLayers%2CMapQuery%2Cconference%2Cgeo</link>
<comments>https://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2012%3A2012-04-28%3Aen%2COpenLayers%2CMapQuery%2Cconference%2Cgeo#comments</comments>
<pubDate>Sat, 28 Apr 2012 22:35:25 +0200</pubDate>
<dc:creator>Volker Mische</dc:creator>
<category>en</category>
<category>OpenLayers</category>
<category>MapQuery</category>
<category>conference</category>
<category>geo</category>
<guid isPermaLink="false">https://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2012%3A2012-04-28%3Aen%2COpenLayers%2CMapQuery%2Cconference%2Cgeo/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<p>It's still early on the first day of the <a href="http://wherecamp.eu/">WhereCampEU 2012</a>, but as my first session (<a href="http://mapquery.org/">MapQuery</a> and other web mapping clients) took already place, it's time to put up the slides.</p>

<p>It was interesting to see, that most people in the audience have already used <a href="http://openlayers.org/">OpenLayers</a>, but very few of them <a href="http://leaflet.cloudmade.com">Leaflet</a> or other mapping libraries. What made me especially happy was, that after my session many people want to have a closer look at MapQuery.</p>

<p>So here they are the slides from my <a href="/blog/2012-04-28/mapquery.pdf">quick introduction into MapQuery</a>.</p>
]]></content:encoded>
<wfw:commentRss>https://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2012%3A2012-04-28%3Aen%2COpenLayers%2CMapQuery%2Cconference%2Cgeo/feed/</wfw:commentRss>
</item>
<item>
<title>WhereCampEU 2011 Berlin
</title>
<link>https://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2011%3A2011-05-29%3Aen%2CGeoCouch%2COpenLayers%2CMapQuery%2Cconference%2Cgeo</link>
<comments>https://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2011%3A2011-05-29%3Aen%2CGeoCouch%2COpenLayers%2CMapQuery%2Cconference%2Cgeo#comments</comments>
<pubDate>Sun, 29 May 2011 22:35:25 +0200</pubDate>
<dc:creator>Volker Mische</dc:creator>
<category>en</category>
<category>GeoCouch</category>
<category>OpenLayers</category>
<category>MapQuery</category>
<category>conference</category>
<category>geo</category>
<guid isPermaLink="false">https://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2011%3A2011-05-29%3Aen%2CGeoCouch%2COpenLayers%2CMapQuery%2Cconference%2Cgeo/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<p>The <a href="http://wherecamp.eu/">WhereCampEU 2011</a> is <a href="http://twitter.com//vmische/status/74658918307069953">just over now</a>, so it's time to get my impression and notes from the sessions written down. But first I'd like to thank all the organizers and attendees for this great event and the geobeers in the evenings.</p>

<h2>Geo Databases</h2>

<p>The WhereCamp is also a chance to meet people you haven't seen for a long time. Exactly this was the case with <a href="http://twitter.com/sabman">Shoaib Burq</a>. We know each other from being a member of the <a href="http://2009.foss4g.org/about_us/">FOSS4G 2009 organizing committee</a>.</p>

<p>As there were still a few free slots, we decided to make session that is simply called "Geo Databases". I didn't expect many people to show up, as there were other sessions with way catchier names.</p>

<p>I ran late as I didn't find the room where my session was supposed to be. But luckily Shoaib was already presenting a rough outline on what will be talked about (we haven't talked about what we want to do upfront). So I happily joined the crowd and started to moderate things a bit. And it was just amazing, the room was packed with people even sitting on the floor. A rough guess would b,e that it was half of the attendees.</p>

<p>We discussed a bit about one of my favourite topics, the question of how much should be done within a geospatial database and what should be done outside of it. It then led to the problem that doing a lot within the database is easy (and fast) on a single instance, but as soon as you want to distribute your database, you might get into trouble.</p>

<p>To conclude, the atmosphere was good and people seemed to have enjoyed it (at least some were telling me so :) I'm happy that it went this well. Shoaib has kindly taken some notes and <a href="https://gist.github.com/994992">put on Github</a>.</p>

<h2>Web Mapping Libraries</h2>

<p>On the second day the program wasn't as packed as on the first day, so I decided to make another session called "Web Mapping Libraries". The Again I didn't expect too many people to show up and this time I was right. It was a good crowd nonetheless.</p>

<p>What I wanted to find out was why people create new web mapping libraries instead of just improving existing ones like <a href="http://openlayers.org">OpenLayers</a>. This was also triggered by <a href="http://www.slideshare.net/pmbatty/to-g-or-not-to-g">Slide 54</a> from <a href="http://twitter.com/pmbatty">Peter Batty</a>'s talk, where he compares OpenLayers to Google Maps. The two things that were catching my attention were "lightweight" and "extra mobile features". Those two can be solved. <a href="http://twitter.com/erilem">Eric Lemoine</a> demonstrated a <a href="http://twitter.com/erilem/status/73499259458170880">29KB (gzipped) version of OpenLayers</a> including the mobile features that were added at the <a href="http://openlayers.org/blog/2011/04/02/61/">Lausanne Code Sprint</a>.</p>

<p>In the session it was just great to hear the impressions for what I call "web neogeo people" (people are web developers, designers and general people that like to visualize data) as opposed to "old school GIS people" (that know all kinds of OGC standards and dream about the axis confusion at night).</p>

<p>Things we've identified were (<a href="http://twitpic.com/53mdmq">photo version</a>):</p>

<ul>
<li>Documentation</li>
<li>Default Look</li>
<li>Usability</li>
<li>Examples are not good</li>
<li>No explanation of the general architecture</li>
</ul>

<h3>Documentation</h3>

<p>The main source of documentation are the <a href="http://dev.openlayers.org/apidocs/">API docs</a>. They describe every function of the library. One problem is that it isn't really clear what exactly you can pass in when one parameter is an options object (<a href="http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/TMS-js.html#OpenLayers.Layer.TMS.Constructor">Example</a>.</p>

<p>The lack of documentation with a nice introduction was also mentioned. Though I don't fully agree, there is some <a href="http://docs.openlayers.org/">really nice documentation in prose</a>, but it seems that people easily miss it (I especially like e.g. the page about <a href="http://docs.openlayers.org/library/spherical_mercator.html">Spherical Mercator</a>).</p>

<h3>Default look</h3>

<p>I agree that the default look of OpenLayers looks a bit out dated. The main buttons look like from the early 2000's and the layer switcher isn't nice either.</p>

<p>On the one hand, you can change the look <a href="http://support.mapbox.com/kb/mapping-101/openlayers-themes">if you want to</a> (<a href="http://mapbox.github.com/webintegration">example</a> (scroll down)), or code the controls with any UI library you'd like to use (this is what GeoExt/MapQuery does).</p>

<h3>Usability</h3>

<p>I'm not really sure what this one was about, but I think it was about the complexity of OpenLayers. You need to have quite a bit GIS knowledge before you can get started. Don't get me wrong, I love OpenLayers for what it does and it's huge amount of features, though it comes to a price for newbies.</p>

<p>Again this is where I think GeoExt/MapQuery can help. They can build an easy to use API around the most common functionality like: display a GeoJSON file on a Google base map that shows a popup when I click on the geometry.</p>

<h3>Examples are not good</h3>

<p>It's nice to have a whole bunch of examples, though in the case of OpenLayers they are a bit misleading. I use them a lot to see how things work. Though they are not always well drafted idiomatic OpenLayers examples, but rather some source showing how a specific feature works. And this is exactly what they are. If you implement a new feature, you create API documentation and a working example.</p>

<p>For me they are more like acceptance tests, rather than good howtos for newbies.</p>

<h3>No explanation of the general architecture</h3>

<p>This one was mostly about "how do things work". One point was about vector layers. They are really powerful and you can compose them out of several parts with things like strategies and formats. It's not easy to understand how they fit together.</p>

<p>I think there was also another point, but I don't recall it. Let me know if you were at the session and remember it :)</p>

<h2>Conclusion</h2>

<p>I had a great time at the WhereCampEU 2011 and it was definitely worth going there.
If you have anything to add to the notes about the session, please do so.</p>
]]></content:encoded>
<wfw:commentRss>https://vmx.cx/cgi-bin/blog/index.cgi/wherecampeu-2011%3A2011-05-29%3Aen%2CGeoCouch%2COpenLayers%2CMapQuery%2Cconference%2Cgeo/feed/</wfw:commentRss>
</item>
<item>
<title>Drag as long as you want
</title>
<link>https://vmx.cx/cgi-bin/blog/index.cgi/drag-as-long-as-want%3A2009-11-11%3Aen%2COpenLayers%2CJavaScript%2Cgeo</link>
<comments>https://vmx.cx/cgi-bin/blog/index.cgi/drag-as-long-as-want%3A2009-11-11%3Aen%2COpenLayers%2CJavaScript%2Cgeo#comments</comments>
<pubDate>Wed, 11 Nov 2009 22:35:23 +0200</pubDate>
<dc:creator>Volker Mische</dc:creator>
<category>en</category>
<category>OpenLayers</category>
<category>JavaScript</category>
<category>geo</category>
<guid isPermaLink="false">https://vmx.cx/cgi-bin/blog/index.cgi/drag-as-long-as-want%3A2009-11-11%3Aen%2COpenLayers%2CJavaScript%2Cgeo/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<p>It has been a very long outstanding bug (officially it was a missing
feature) in <a href="http://www.openlayers.org/">OpenLayers</a> that annoyed
me from the first time I’ve been using OpenLayers. I’m talking about
<a href="http://trac.openlayers.org/ticket/39">ticket #39</a>: “Allow
pan-dragging while outside map until mouseup”.
</p>
<p>Normally when you drag the map in OpenLayers it will stop dragging as soon
as you hit the edge of the map viewport (the <code>div</code> that contains
the map). Whenever you have a small map, but a huge window and a loooong way to
drag, it can get quite annoying, as the maximum distance you can drag at once
is the size of that viewport.
</p>
<p>But yesterday
<a href="http://openlayers.org/pipermail/commits/2009-November/009095.html">it
finally happend</a>. A patch to fix it landed in trunk. A first rough cut was
made at the
<a href="http://openlayers.org/blog/2009/10/26/openlayers-at-the-foss4g-code-sprint/">OpenLayers
code sprint at the FOSS4G</a>.
<a href="http://wiki.osgeo.org/wiki/User:Ahocevar">Andreas Hocevar</a> reviewed
the code and made a more unobtrusive version of it (thanks, again).
</p>
<p>Try these two examples to see the difference. Click on the map an drag it a
long way to the right and back to the left again (you might need to zoom it a bit to see the full effect):
<ul>
  <li><a href="http://openlayers.org/dev/examples/lite.html">default
behaviour</a></li>
  <li><a href="http://openlayers.org/dev/examples/document-drag.html">documentDrag behaviour</a></li>
</ul>
<p>As it is a new feature, it isn’t enabled by default (and only available on
current SVN trunk, it will be available in OpenLayers 2.9). To enable it on
 your map, just use the following code to add the <code>documentDrag</code>
parameter to the
<a href="http://dev.openlayers.org/docs/files/OpenLayers/Control/DragPan-js.html">DragPan control</a> (you obviously need a recent SVN checkout).
<p><strong>Update</strong> (2009-11-18): It got even easier with
<a href="http://openlayers.org/pipermail/commits/2009-November/009109.html">r9805</a>:
</p>
<p>
  <pre>
<code>// Use default controls but with documentDrag enabled.
var controls = [
    new OpenLayers.Control.Navigation({documentDrag: true}),
    new OpenLayers.Control.PanZoom(),
    new OpenLayers.Control.ArgParser(),
    new OpenLayers.Control.Attribution()]
map = new OpenLayers.Map('map', {controls: controls});
</code></pre>
</p>
<p>For a full working version have a look at
<a href="http://svn.openlayers.org/trunk/openlayers/examples/document-drag.html">the
source of the documentDrag example</a>.
]]></content:encoded>
<wfw:commentRss>https://vmx.cx/cgi-bin/blog/index.cgi/drag-as-long-as-want%3A2009-11-11%3Aen%2COpenLayers%2CJavaScript%2Cgeo/feed/</wfw:commentRss>
</item>
</channel>
</rss>
