Code Monkey home page Code Monkey logo

demo's Introduction

demo's People

Contributors

hkrishna avatar louh avatar missinglink avatar orangejulius avatar sevko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demo's Issues

pelias/demo causing error in pelias/webview

I'm trying to setup a standalone pelias server and have a pelias-webview ( running master ) working with geonames import, and have pointed a pelias-demo angular app at the host. The requests go through, but /suggest request cause the following error:

TypeError: Cannot call method 'split' of undefined
at buildSuggestCommand (/var/www/mapzen/pelias-webview/controller/suggestController.js:50:40)
at module.exports (/var/www/mapzen/pelias-webview/controller/suggestController.js:15:11)
at callbacks (/var/www/mapzen/pelias-webview/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/mapzen/pelias-webview/node_modules/express/lib/router/index.js:138:11)
at pass (/var/www/mapzen/pelias-webview/node_modules/express/lib/router/index.js:145:5)
at Router._dispatch (/var/www/mapzen/pelias-webview/node_modules/express/lib/router/index.js:173:5)
at Object.router (/var/www/mapzen/pelias-webview/node_modules/express/lib/router/index.js:33:10)
at next (/var/www/mapzen/pelias-webview/node_modules/express/node_modules/connect/lib/proto.js:174:15)
at Object.handle (/var/www/mapzen/pelias-webview/app.js:23:5)
at next (/var/www/mapzen/pelias-webview/node_modules/express/node_modules/connect/lib/proto.js:174:15)

After the traceback, when I actually hit return in the app and hit the /search endpoint, I can see that the request is made ( by inspecting XHR responses ) but the UI no longer updates.

Thoughts?

Fate of this demo?

What's the fate of this demo? We should at a minimum get a tangram basemap in there. We could kill the demo for now and have it point to the search project page.

Thoughts?

Mobile version of demo should use accelerometer data

From javascript point of view, we have:

new handler window.ondevicemotion
new event object:

event.accelerationGravity, with x, y, z attributes
event.accelerationIncludingGravity, with x, y, z attributes
event.rotationRate, with alpha, beta, gamma attributes
window.ondevicemotion = function(event) {  
    var accelerationX = event.accelerationIncludingGravity.x;  
    var accelerationY = event.accelerationIncludingGravity.y;  
    var accelerationZ = event.accelerationIncludingGravity.z;  
}  

Lets try and use this information to display the 3D aspect of the map on mobile browsers better - so that when you tilt your phone you can inspect the 3D building better.. That would be so cool, wouldn't it?

Start where you are

It would be nice if the map automatically opened up on your current location, once the geolocation dialog has been approved once it should always do this without prompting the user again.

query string i18n

when typing non-english languages, character accents are removed. Most probably due to the toLowerCase method in javascript.

ie. search Cinématte, query string will say cinematte.

due to a related bug this can cause the same query to result 0 results.

jump to location

the old dash had a great feature to 'jump to' locations in the world and had a button to jump to your current location.

these are really helpful for anyone who doesn't live in NYC

rawgit issue

There is an intermittent issue with rawgit which is preventing the demo from showing

rawgit

add SF to city menu

an exciting list of cities, but San Francisco needs to be on there too. Ideally #15/37.7853/-122.3962

Mapzen mobile menu issue

Not sure if this is the right place for this issue...

If you view mapzen.com/pelias on your mobile phone you get a nice responsive menu with a menu toggle button.

For some reason this menu button will toggle the menu open but not closed again.

Seems to only affect the pelias demo page...

duplicate results

I have a location that has 2 points: a geoname & osmway. I was trying to see why sometimes it only returned 1 result & sometimes both (something to do with zoom & bbox?). While playing around, I found that sometimes it wouldn't remove the primary result from the list of possibilities. What's more interesting, it suggested the option that was a little further away. I know the url isn't RESTful so you won't get the same result, but here are the findings: https://cdn.rawgit.com/pelias/demo/3way-toggle/index.html#loc=4,43.29,-127.49&q=North Medford High&t=fine&gb=bbox
image

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.