GithubHelp home page GithubHelp logo

planetfederal / gxp Goto Github PK

View Code? Open in Web Editor NEW
84.0 61.0 97.0 13.11 MB

High level components for GeoExt based applications.

Home Page: http://boundlessgeo.com/

License: Other

Shell 0.02% JavaScript 89.51% HTML 8.89% CSS 1.21% Python 0.37%

gxp's Introduction

gxp

High level components for GeoExt based applications.

The gxp components are used by OpenGeo in their applications, such as GeoExplorer and GeoEditor.

See the tutorial, API docs and examples for more detail.

gxp's People

Contributors

ahocevar avatar alediator avatar asaunier avatar bartvde avatar benmccall avatar bmcbride avatar bmmpxf avatar dwins avatar emoen avatar flavour avatar francbartoli avatar igor-chernikov avatar ingenieroariel avatar iwillig avatar justb4 avatar lbesson avatar mbertrand avatar mindosoft avatar mpriour avatar oscarfonts avatar pramsey avatar tschaub avatar twpayne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gxp's Issues

WMSSource throws failureEvent for valid getCapabilities urls

WMSsource.js trhows a failureEvent because this.store.reader.raw.service is undefined but the url to the getCapabilities document is valid and the getCapabilities document has a service xml element.

The url im using is: http://openmetoc.met.no/metoc/metocwms
(http://openmetoc.met.no/metoc/metocwms?request=Getcapabilities&service=WMS&version=1.1.1)
While this getCapabilities document it thows no errors and is working as expected:
http://npdwms.npd.no/npdwmsmap_WGS84.asp

I cant find where the xml is parsed (where the raw attribute is created) and Im wondering if it can be an encoding issue.

Transaction status for featureeditpopup class

There is no way to get transaction status or error message , if i use featureeditpopup class for editing , creating or deleting a feature. Hope this topic will be considered soon.

add MapQuest source

MapQuest provides both OSM and Aerial imagery. We should provide access to both.

refactor paging code into a plugin

Refactor the paging code in FeatureManager into a plugin, so that quadtree paging and WFS paging can be two different plugins (thanks ahocevar for the suggestion)

tree node selection should be interrupted if editing

Currently, the user is prompted to save, disregard, or continue editing when they try to change the selected layer during editing. However, the target layer node is still selected even if the user chooses to continue editing.

better structure for layer config

We currently support a limited number of layer properties in our layer config objects. We should discuss a better way to handle this. One option would be to have properties for each argument in the layer constructor. So, the WMS source would take layer config objects with title, url, params, and options properties. To that, we add the properties required by the source (in the case of WMS: name). This would let us support arbitrary layer options (and query string parameters in the case of WMS) without having to code in those property names.

publish map when Vector is available

It doesnt look like a OpenLayers.Layer.Vector have source. You should add
!(layer instanceof OpenLayers.Layer.Vector) to line 256 in method getState() in Viewer.js.
This solves the problem but doesnt print the vector graphics.

    // include all layer config (and add new sources)
    this.mapPanel.layers.each( function( record ){
        var layer = record.get("layer");
        if (layer.displayInLayerSwitcher && !(layer instanceof OpenLayers.Layer.Vector) ) {
            var id = record.get("source");
            var source = this.layerSources[id];
            if (!source) {
                throw new Error("Could not find source for layer '" + record.get("name") + "'");
            }
            // add layer
            state.map.layers.push(source.getConfigForRecord(record));
            if (!state.sources[id]) {
                state.sources[id] = Ext.apply({}, source.initialConfig);
            }
        }
    }, this);

GoogleEarthPanel rendered before map has layers

With 5024a1b, the google.earth.createInstance is called on render. In GeoExplorer at least, this happens before layers have been added to the map, so setExtent fails.

We need to come up with some tests that cover our use cases here. In the meantime, I'm going to revert this change that adds the "render" listener.

Can we have a layerOptions on the source?

My use case:

I have defined an external WMS as a source, which I do not use in the map layers, it is only meant for people to add layers using the AddLayers dialog.

However I want all the layers to be singleTile, but I can't seem to currently force that. Would it be an idea to have a layerOptions object in the source, which will then be used in the WMSSource when creating the layers?

Any other ideas on how to tackle this?

LayerProperties translation

I made file with translation to polish (pl.js) (will enclose with another post).
Everything works ok with one exception:
LayerProperties phrase is not working.

The only method is changing menuText and toolTip directly in LayerProperties.js.

All other phrases works.

Query Panel Problem with latest version of ext js (3.2)

Hello ,

I was trying to customize the query panel to work with feature grid as like in Geoeditor. I got a basic query panel code from opengeo suite recipes. But i am facing a problem.
Query panel is not working with extjs 3.2 , When i select a layer it is throwing an error - " uncaught exception: Ext.data.DataProxy: DataProxy attempted to execute an API-action but found an undefined url / function ". How to handle this error. This error prevents
loading the layer features into query by attribute combo box. How to fix this problem ?. Thanks

cannot specify resolutions in mapConfig

Today I am working for the Dutch Cadastre and trying to change their viewer to possibly use gxp, but git does not work over their firewall. So I am opening up tickets to keep track of things.

Currently we cannot specify resolutions in mapConfig in Viewer.js this could be handy though if you want to use a different projection with a different set of resolutions.

add plugin for persisting state

As discussing the GeoBuilder stuff with ahocevar on IRC, he came up with this very good idea of moving the persistance code out of GeoExplorer into a separate plugin in gxp named e.g. StatePersister whose output could be the publish dialog, whose action could be the publish button.

GoogleMaps credits dialog

While working with any GoogleMaps source, map credits dialog covering partially map view is shown after every map refresh. What is strange source graphic is named iPhone...
Changing parameter version: 3.3 in GoogleSource.js to 3.2 value makes it ok.

FeatureManager unintentionally sets map base layer

The FeatureManager can add layers to the map before any other layers are added. This unintentionally sets the base layer to a vector layer. Tools should never add layers to the map before the "ready" event. In addition, it would simplify things to add/remove the feature layer once and control visibility when other tools want to display or hide features.

AddLayers plugin: have an option to specify the selected source

This is needed for the GeoNode client, which now pops up with the local Geoserver instead of the first source which is the default now. Code from the Geonode client:

-        var initialSourceId, source, data = [];        
-        for (var id in this.layerSources) {
-            source = this.layerSources[id];
-            if (initialSourceId === undefined &&
-                    source instanceof gxp.plugins.WMSSource &&
-                    source.url.replace(this.urlPortRegEx, "$1/").indexOf(
-                        this.localGeoServerBaseUrl.replace(
-                            this.urlPortRegEx, "$1/")) === 0) {
-                initialSourceId = id;
-            }
-            if (source.store) {
-                data.push([id, this.layerSources[id].title || id]);                
-            }
-        }
-        // fall back to 1st source if the local GeoServer WMS is not used
-        if (initialSourceId === undefined) {
-            initialSourceId = data[0][0];
-        }

A slow WMS in the sources can hault the application

If there is a slow WMS defined in the sources, it can hault loading of the whole map, even if none of the layers of the WMS is used in the layers configuration of the map at all. This does not make sense to me. Would it be possible to only load these sources when they are necessary (e.g. when the AddLayers dialog is shown)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.