Ejemplo n.º 1
0
    map_edit = views.map_edit
    map_json = views.map_json
    map_thumbnail = views.map_thumbnail

elif check_ogc_backend(qgis_server.BACKEND_PACKAGE):
    from geonode.maps.qgis_server_views import MapCreateView, \
        MapDetailView, MapEmbedView, MapEditView, MapUpdateView

    new_map_view = MapCreateView.as_view()
    existing_map_view = MapDetailView.as_view()
    map_embed = MapEmbedView.as_view()

    from geonode.maps.qgis_server_views import map_download_qlr, \
        map_download_leaflet, set_thumbnail_map

    map_edit = MapEditView.as_view()
    map_json = MapUpdateView.as_view()
    map_thumbnail = set_thumbnail_map

maps_list = register_url_event()(
    TemplateView.as_view(template_name='maps/map_list.html'))

urlpatterns = [
    # 'geonode.maps.views',
    url(r'^$', maps_list, {'facet_type': 'maps'}, name='maps_browse'),
    url(r'^new$', new_map_view, name="new_map"),
    url(r'^add_layer$', views.add_layer, name='add_layer'),
    url(r'^new/data$', views.new_map_json, name='new_map_json'),
    url(r'^checkurl/?$', views.ajax_url_lookup),
    url(r'^(?P<mapid>[^/]+)$', views.map_detail, name='map_detail'),
    url(r'^(?P<mapid>[^/]+)/view$', existing_map_view, name='map_view'),
Ejemplo n.º 2
0
    map_thumbnail = views.map_thumbnail

elif check_ogc_backend(qgis_server.BACKEND_PACKAGE):
    from geonode.maps.qgis_server_views import MapCreateView, \
        MapDetailView, MapEmbedView, MapEditView, MapUpdateView

    new_map_view = MapCreateView.as_view()
    existing_map_view = MapDetailView.as_view()
    map_embed = MapEmbedView.as_view()

    from geonode.maps.qgis_server_views import map_download_qlr, \
        map_download_leaflet, set_thumbnail_map

    map_download_qlr = map_download_qlr
    map_download_leaflet = map_download_leaflet
    map_edit = MapEditView.as_view()
    map_json = MapUpdateView.as_view()
    map_thumbnail = set_thumbnail_map

urlpatterns = [
    # 'geonode.maps.views',
    url(r'^$',
        TemplateView.as_view(template_name='maps/map_list.html'),
        {'facet_type': 'maps'},
        name='maps_browse'),
    url(r'^new$', new_map_view, name="new_map"),
    url(r'^add_layer$', views.add_layer, name='add_layer'),
    url(r'^new/data$', views.new_map_json, name='new_map_json'),
    url(r'^checkurl/?$', views.ajax_url_lookup),
    url(r'^snapshot/create/?$', views.snapshot_create),
    url(r'^(?P<mapid>[^/]+)$', views.map_detail, name='map_detail'),