Git Product home page Git Product logo

mf-geoadmin3's Issues

Create broadcast when language changes

Some components (gaLayers service and the users of this service) should act if the language changes (loading new layers.json, loading new catalog, etc). Therefore, we should broadcast a message when the language changes.

Arrow keys don't work in edit fields / text boxes

The arrow keys don't work there anymore because they are captured by the map for panning.

This can be seen in share panel (in the embed text area or in the edit box), but also in dialogs like kml import.

I don't think that's the desired behaviour.

Geolocation issue in prod mode

All in the title with this JS error
Uncaught TypeError: Object # has no method 'getResolutionForExtent'
But it works in src mode

Make updateol fails on mf1lt

The plovr version used to build the openlayers build is not compatible with the java version installed on mf1lt. We have version 6 installed, and we need 7 for plovr.

6.2.9_ loading application: technical translation appear on load

1: VISTA IE9
2: Steps to reproduce
Cold load application http://mf-geoadmin3.bgdi.admin.ch/main/prod/
3: Result
non translated technical names appear on load in container
4: Expected Result
Application does show correct language on load.
Otherwise user thinks application is slow. This can especially observed on older mobile and slow connections... I know it is picky, but it is the first thing the user sees fomr the new app ... I think jeiziner observed the same thing

5: if possible: workaround
WAIT!
6: link to file : attache it to github

Import WMS: Replace thumb by a button

The tumb in the result list is useless and the zoomToExtent on mouse over/out is disturbing.

So we should remove the thumb column amd replace it by a zoomToExtent column.

map keyboard control listen «too large»

←, ↑, →, ↓, +, - are unusable in every field as they are catched to control the map.

They shouldn’t be catched (at least) when a link/button/input/select/textarea is focused.

Makefile: src and prod

In the Makefile, we have a few sections that are absolutely similar but the 'mode=prod'. Maybe we can improve that to avoid errors and follow the DRY principle more closely.

As an example, compare target prod/index.htmland src/index.html

Unable to update openlayer on mf1t

make updateol
cd .build-artefacts/ol3; git fetch origin; git merge --ff origin/master; git show; ../python-venv/bin/python build.py build/ol.js build/ol-simple.js build/ol-whitespace.js
Already up-to-date.
2013-07-25 10:50:45,177 build/ol.js: java -jar build/plovr-2013-rc3.jar build buildcfg/ol.json
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/plovr/cli/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.plovr.cli.Main. Program will exit.
Traceback (most recent call last):
File "build.py", line 747, in
main()
File "/home/sbrunner/mf-geoadmin3/.build-artefacts/ol3/pake.py", line 339, in main
target.build(dry_run=options.dry_run)
File "/home/sbrunner/mf-geoadmin3/.build-artefacts/ol3/pake.py", line 107, in build
self.action(self)
File "build.py", line 191, in build_ol_js
t.output('%(JAVA)s', '-jar', PLOVR_JAR, 'build', 'buildcfg/ol.json')
File "/home/sbrunner/mf-geoadmin3/.build-artefacts/ol3/pake.py", line 190, in output
output = check_output(args, *kwargs)
File "/home/sbrunner/mf-geoadmin3/.build-artefacts/ol3/pake.py", line 38, in check_output
raise subprocess.CalledProcessError(retcode, cmd, output=output)
TypeError: init() got an unexpected keyword argument 'output'
make: *
* [updateol] Error 1

Generate permalinks

PR #6 provided a way to parse the query string to set the application's initial states. Now we need to do the reverse, that is create links from the application's current states.

One way to do it is to simply update the URL in the address bar. Angular's $location service supports that, based on the HTML5 History API. This service has a fallback mechanism for browsers that don't support the History API (IE9 in our case), but I haven't tested it yet.

Here's a demo: http://mf-geoadmin30t.bgdi.admin.ch/elemoine. The URL in the address bar should change as the map view changes. (I introduced a 1 second delay for performance reasons).

The commit that implements this is here: 097d863.

6.2.11 Geolocation active: not possible to pan

1: VISTA IE9
2: Steps to reproduce
http://mf-geoadmin3.bgdi.admin.ch/main/prod/
Activate geolocation
let app zoom to your location
try to pan with left mouse hold
3: Result
no panning but zooming! (zoombar does not work neither)
4: Expected Result
panning works as defined
5: if possible: workaround
none
and even after deactivation of geolocationthe app is not usable anymore. Seems to be an issue: pan with left mouseclick impossible, scrollwheel starts panning as well-> complete reload needed

Private method from OL3

In ImportWMS and Geolocation directives we need the view2D.getResolutionForExtent function.

Where can we put this stuff to avoid duplicate code.

Same question can be asked for code copied from Angular (URL_REG_EXP ...).

Examples do not work in IE9

The existing examples don't work on IE9. @oterral found out it's because of <base href="../../../"> in the head tag of the html page. IE9 does not support relative pathes here.

6.2.11 geolocation fly to toooooo slow

1: VISTA IE9
2: Steps to reproduce
http://mf-geoadmin3.bgdi.admin.ch/main/prod/
zoom to http://mf-geoadmin3.bgdi.admin.ch/main/prod/?topic=inspire&lang=de&bgLayer=ch.swisstopo.pixelkarte-farbe&X=176450.93&Y=861536.08&zoom=13
activate Geolocation
3: Result
Takes forever to fly to the location or app even crashes (amdin.ch is not responding due to a long-running script))
4: Expected Result
as smooth as in ffirefox
5: if possible: workaround
none

In general the fly to is too slow on VISTA (tested with safri,chrome ff)

Tests run twice on Travis CI

Since 87081cd the tests are run twice on Travis. make all run them, and Travis does npm test, which runs them again. make all should probably be what we want to do on Travis - make is our entry point.

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.