Combining the power of OpenLayers and jQuery
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
demo Fix for kyiannis bug of google not working properly Aug 3, 2012
lib Update getdeps to use openlayers 2.12 Aug 3, 2012
src Removed all new OpenLayers.Projection() Calls as per Issue 13 Aug 3, 2012
.gitignore added somemore ignore stuff Jun 30, 2011
AUTHORS License MapQuery under MIT. Jul 5, 2011
LICENSE License MapQuery under MIT. Jul 5, 2011
README.mdown Minor cosmetics on the Aug 3, 2012
THANKS Thanks Justin Jul 27, 2011



More information is available at

The current documentation are the examples in the demo directory. Feel free to write something up for this README :)

In order to get the demos work, you need to get all dependencies. Run the in the lib directory. Take care, that the have enough permissions that it can run.

Known issues

Demos don't work

  1. Have you got the dependencies (see above)
  2. If you use Chrome/Chromium, you either need to run it behind a web server (so that the URLs are http:// and not file://) or start it with the -allow-file-access-from-files flag. See for more information.

Development Guidlines

If you want to create a new widget for MapQuery, here are some notes:

  • Don't indent after the (function($) { })(jQuery) closure:
(function($) {
$.widget("mapQuery.mqLayerControl", {
    _create: ...
  • Name your widget in the constructor

    $.widget("mapQuery.mqLayerControl", {...

  • Use jQuery-tmpl for templating

  • Use jQuery UI classes for styling

  • If you need this in an inner function, name the corresponding variable self

  • Indentation is 4 spaces

  • For CSS clases use a dash (-) and not an underscore (_) to separate parts


The bundled tiles were generated from the Natural Earth dataset.


MapQuery is licensed under the MIT License.