Nicolas Brisebois-Tétreault
3543ebba87
Set tms option for custom layer
...
Set the L.TileLayer as a TMS. It's required if the base layer specified in custom.url is a TMS. The default value of tms is false in Leaflet.
To use the TMS option, ```ckanext.spatial.common_map.tms = true``` has to be set in the ckan .INI file.
Same as https://github.com/ckan/ckanext-geoview/pull/24
2015-11-06 10:40:34 -05:00
fxia
b0b71a5438
[ #112 ] bbox fix only kicks in with positive w-long and negative e-long
2015-07-24 11:41:11 -04:00
amercader
414255e34a
[ #102 ] MapBox tiles require access token
2015-05-07 17:59:21 +01:00
amercader
86c4fbdbf7
[ #101 ] Change Mapquest tiles base URL under https
2015-05-07 17:43:03 +01:00
amercader
0886e15ed5
[ #107 ] Remove geojson and wms views
...
The GeoJSON Leaflet plugin now lives on ckanext-geoview:
https://github.com/ckan/ckanext-geoview
The old WMS preview has been completely removed in favour of the
OpenLayers based geoview:
https://github.com/ckan/ckanext-geoview#openlayers-viewer
2015-05-07 13:43:52 +01:00
fxia
0380754619
bbox fix, more
2015-04-09 13:29:45 -04:00
fxia
dff5fbe0a4
bbox fix. make sure w long value is less than e long value
2015-04-09 13:29:21 -04:00
amercader
a96d134f1e
[ #95 ] Fix GeoJSON preview for features without properties
2015-04-08 10:01:55 +01:00
amercader
15461acff7
[ #52 ] Add class for link removed on 2.2
2014-01-09 17:49:18 +00:00
amercader
c352fbdadb
[ #52 ] Show dataset map correctly on all 2.x versions
2014-01-09 17:46:45 +00:00
amercader
45ebb5a13e
[ #37 ] Update attributions
2013-10-10 17:56:23 +01:00
amercader
2f28c8c5c7
[ #37 ] Add support for MapBox tiles and others
...
The common map function has been extended to allow configuring different
options for the base layer. There are default presets for MapQuest and
MapBox, but any XYZ layer can be added configuration options. The
options are passed to the templates via a helper function and to the js
modules via data-module attributes. Full docs included.
2013-10-06 23:22:04 +01:00
amercader
028d26e6e0
[ #37 ] Common function for initializing maps
...
This avoids duplication, mkaes all map consistent and makes easier
future support for other base maps.
2013-08-30 17:10:11 +01:00
amercader
b371aee381
[ #36 ] Fix spatial query widget for CKAN 2.1
2013-08-30 16:26:02 +01:00
amercader
063a1b8530
[ #26 ] Fix broken markers on debug mode
2013-08-08 17:33:56 +01:00
amercader
19ea9b1753
[ #32 ] Do not set height to avoid scrollbars if container is less than 600px
2013-08-08 17:31:21 +01:00
amercader
e30b662a36
[ #21 ] Make popup table match the rest of CKAN tables
2013-06-14 17:53:38 +01:00
amercader
f8dd4c02bd
[ #21 ] Fix i18n calls
...
All the 'self' on the 'showError' function should be 'this', otherwise you
will refer to the window. Also 'this.i18n' assumes an 'i18n' key in the
module options. Looks like you are trying to pass some variables to the
string template, note the sprintf-like syntax.
2013-06-14 17:39:58 +01:00
Dominik Moritz
fe8c469c12
[ #21 ] show object in popup, fix layout
2013-06-14 13:23:06 +02:00
Dominik Moritz
6eb180c02a
[ #21 ] Add properties information to popup, lighter style
2013-06-13 23:24:01 +02:00
Dominik Moritz
64d1846e90
[ #21 ] Add basic GeoJSON preview and fix set up of wms preview
2013-06-13 22:51:01 +02:00
amercader
6f3c699311
[ #7 ] Remove old genshi spatial query widget
2013-05-13 17:13:19 +01:00
amercader
7e10eb9c16
[ #7 ] Allow to customize the default extent for the spatial query widget
2013-05-13 16:59:49 +01:00
amercader
af253d0f89
[ #7 ] Spatial search widget for 2.0
...
Adds a new map widget to the 2.0 search templates. It is shown initially
in the sidebar but it is expanded when the user needs to draw an area.
It uses Leaflet and Leaflet.draw.
2013-05-13 16:14:48 +01:00
amercader
4638b3899f
Revert "[ #8 ] Don't use object id so messages can be grouped"
...
This reverts commit 032cc4d961
.
2013-03-14 12:36:39 +00:00
amercader
032cc4d961
[ #8 ] Don't use object id so messages can be grouped
2013-03-14 12:34:20 +00:00
amercader
fd1071959e
[ #6 ] Move to Leaflet for dataset map widget
...
For this particular use case Leaflet offered the best option. Also
solves the issue when showing extent covering the whole world.
2013-01-18 15:12:09 +00:00
amercader
70f7f6144b
Factor out DGU code from the dataset map
...
It now lives in the DGU extension:
https://github.com/datagovuk/ckanext-dgu/blob/master/ckanext/dgu/theme/public/scripts/dgu-dataset-map.js
2013-01-18 13:32:30 +00:00
amercader
3da5807eb4
[ #6 ] Update dataset map to be a pure snippet
...
No need to load an extension.
2013-01-18 13:07:26 +00:00
amercader
21a85a6b3f
[ #4 ] Register resources only once for all plugins
...
spatial_metadata will load the resources (public, templates and
resources) for all plugins to use, as it needs to be loaded anyway.
2013-01-15 20:00:46 +00:00
amercader
711391e971
[ #4 ] Rewrtie WMS preview plugin for ResourcePreview interface
...
Much simplified plugin for previewing WMS. It requires the
resource_proxy plugin to work.
Also clean up public and template dir to mimic core layout.
2013-01-14 13:59:15 +00:00
amercader
3bb174d56d
Update WMS viewer prototype to work with the new iframe on resource read page
2012-10-17 13:02:57 +01:00
amercader
efa2307ee5
[wms] Fix small bug
2012-08-14 12:48:39 +01:00
amercader
d841bb2c17
[wms] Fix typo
2012-08-13 18:52:30 +01:00
amercader
231f5806e9
[wms] Support for map param
2012-08-13 17:50:33 +01:00
amercader
4ca61fd48b
[wms] First go at adapting the WMS previewer to the new theme
2012-08-13 17:09:08 +01:00
amercader
87de1280f2
[ #2641 ] Adapt dataset map to new theme
...
The new theme is based on Jinja2 templates. Extensions can define their
own snippets, which can used when creating custom themes. In this case
two snippets have been created, one showing the map on the primary area
and the other on the sidebar.
2012-07-11 18:24:49 +01:00
amercader
493589aaf1
[ #2399 ] Fixes for CKAN 1.8
...
* Fix broken imports in model after cleanup
* Minor CSS glitch on the spatial filter widget
2012-06-25 19:27:18 +01:00
David Read
745bed4e77
Customising extent map for dgu.
2012-05-22 10:51:44 +01:00
amercader
1ffe6f42d1
[ui] Fix alignment and button classes (update to latest bootstrap)
2012-05-08 14:19:28 +01:00
David Read
8010c1e16b
Stray comma caused IE7 to barf.
2012-04-27 15:04:22 +01:00
David Read
e19227fe61
Added option for OS tiles (subject to licence).
2012-04-27 13:06:20 +01:00
amercader
0c6d0f7e48
[search] Maintain previous extent when filtering by area
2012-02-22 17:25:06 +00:00
amercader
1f829b3031
[search] Add option to define a default extent
2012-02-21 11:05:13 +00:00
amercader
1d1f88195f
Merge from master
2012-02-20 18:13:33 +00:00
amercader
51a8dfa857
[dataset_map] Use MapQuest tiles instead of OSM ones
...
Because of http://wiki.openstreetmap.org/wiki/Tile_usage_policy
2012-01-20 16:19:08 +00:00
amercader
a20688a453
[search][ #1469 ] Map widget for the spatial search UI
...
TODO: integrate better with the general look and feel.
2012-01-18 11:03:21 +00:00
Adrià Mercader
9b0d00786a
Update and cleanup for WMS previewer. It is still very unstable and should be
...
considered alpha stage.
2011-09-30 11:57:09 +01:00
Adrià Mercader
0ac18ba0a9
New Dataset Map Widget plugin.
...
When enabled, if the dataset has an 'spatial' extra, it shows a map on the
details page. It uses OpenLayers and supports all types of geometries.
2011-09-30 11:33:36 +01:00
james gardner
6b5d260b0a
[packaging] Moving the resources into the module, no resources need when deployed should ever be outside
2011-04-20 11:44:55 +01:00