rmsrob / cozy-map Goto Github PK
View Code? Open in Web Editor NEWmap setup with Leaflet
License: Apache License 2.0
map setup with Leaflet
License: Apache License 2.0
To render inside the SideBar module ./client/src/sidebar.coffee
to select import export some databases and "preferences".
In a first time i need it to focus on "homedata" /server/controllers/homedata
see /server/model/homedata
When requesting the contact list I sometimes end up waiting undefinitively the response of contact app.
The console show that cozy returned a "401 Unauthorized" but nothing in the js logs. The "spinner" stay in screen forever.
the top right burger icon should toggle the sidebar.
the << icon will have no more sense here.
Cozy-Map rely on /fonts/fonts.css
from Cozy-proxy for FontAwesome.
waiting the PR #259 to be able to use at least the version 4.4
when trying to link <link rel='stylesheet' href='../node_modules/dist/leaflet.css' />
inside index.html.
the map rendered weirdly kind of erratic.
this problem is solved when the stylesheet is pasted somewhere inside the project. as follow:
<link rel='stylesheet' href='styles/leaflet.css' />
is my link wrong or are we not allow to link the stylesheet to the node_modules directory?
To render inside the SideBar module ./client/src/sidebar.coffee
Here's the error I get into the console when I try to see one of my contacts on the map:
process for: 158 rue de Verdun 92800 Puteaux FRANCE loading... map.min.js:28037:7
TypeError: r is undefined
map.min.js:28045:35
error with conctat address!
It would be nice to catch the error and provide some user feedback ;-)
with the commit 12e1081168
If you start the app it will do a POST and a GET job.
userConfig.postConfig data, (err, config) ->
userConfig.getConfig (err, res) ->
i tried to stop the POST job when the GET job return a body.length not null
userConfig.getConfig (err, res) ->
if res.body[0] is 0
userConfig.postConfig data, (err, config) ->
unfortunately it firebug me that res
in if res.body[0] is 0
is not defined.
Actually this code work if you have already done a POST job.
But, if you start the app for the first time it will be stuck with a callback err TypeError: res.body is null
.
Hey there,
When I was at a friend's the other day and he was showing me his webmail app, I noticed a mail about an order my friend placed which was giving a tracking link for his package. So I had a thought:
If we create konnectors to retrieve locations from main transporters (UPS, DHL, Colissimo...) and import these locations into Map, we could add a real-time (well, as much as allowed by the transporter) package tracking in Cozy.
May represents a huge load of work, but adds, in my opinion, a very interesting feature.
Hi,
some of my contacts in my Cozy Contacts app have an address than spans on several lines.
Example:
25 bis rue des machins
35000 Rennes
When I import my contacts into cozy-map, the address becomes 25 bis rue des machins35000 Rennes
without the new line, and therefore, can't be marked on the map.
May I suggest to replace all the new lines by a simple whitespace ?
need to handle loading, success and fail responses functions out of the console.
Currently when syncing with contacts, it seems the order is arbitrary. It would be great if the contacts where sorted alphabetically.
re work the input and the other share links
into /client/src/index.coffee
console.log homedata
console.log placedata
Firebug report data as null
it should be something like Array [ ]
when loading the map on Cozy, you may experience a very little sudden burst of the whole page.
It's probably due to the cozy top bar, i fix it by calling the App in full screen as:
your cozy address should be something like this:
https://{USER}.cozycloud.cc/#apps/map/{Zoom}/{Lat}/{Lng}
just move the #
like this
https://{USER}.cozycloud.cc/apps/map/#{Zoom}/{Lat}/{Lng}
Double benefit, now you can also update your position from the address bar by enter or mod the {Zoom}/{Lat}/{Lng}
Hi,
It would be really cool to have the ability to edit custom maps, and eventually share them, as uMap does (software behind framacarte).
Not sure if this is an already planned feature though :)
Leaflet need a div map to be able to render the map inside it.
is there a way to avoid to put this into index.html
<div id='map'></div>
and put it into index.coffee or mymap.coffee ?
impossible to pan the map after a click on the upper right locate icon. seen on FF on OSX.
should do a distinction between a one time locate and a follow locate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.