freshworkstudio / gps-google-maps-socket-io Goto Github PK
View Code? Open in Web Editor NEWGPS Google Maps Socket.io Demo App
License: MIT License
GPS Google Maps Socket.io Demo App
License: MIT License
I have deployed the server on my VM, and the emulator on my dev-box. I can see they are both talking to each other now, but the map is not rendering. I checked the JavaScript console from the browser's developer tools and found this error:
Google Maps JavaScript API error: RefererNotAllowedMapError
https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: http://ec2-52-18-253-194.eu-west-1.compute.amazonaws.com:3000/
appreciate your advice!
Greetings,
I'm starting to get the hang of the library and created a custom adapter for my GPS device and have it sending data however is it possible to track multiple different devices at the same time?
Lets say I have my GPS device and the TK103 in the index.js under the var options = {
'debug' : false,
'port' : 8090,
'device_adapter' : "TK103",
'device_adapter' : "AB100"
}
However what ever is set as the last device_adapter is what the app is looking for.
any advice would be greatly appreciated!
Greetings, I've been playing around with the demo and have it up and running however I'm wondering if anyone else is seeing a couple errors I am getting in the console or know how to resolve them.
main.js:70 Uncaught TypeError: Cannot read property 'uid' of undefined
at checkIfDeviceExists (main.js:70)
at n. (main.js:82)
at n.emit (universalModuleDefinition:2)
at n.emit (universalModuleDefinition:3)
at n.emitAll (universalModuleDefinition:1)
at n.onping (universalModuleDefinition:1)
at n. (universalModuleDefinition:3)
at n.emit (universalModuleDefinition:2)
at n. (universalModuleDefinition:2)
at n.r (universalModuleDefinition:2)
and when I click on the marker on the map getting
Uncaught TypeError: Cannot read property 'length' of undefined
at Function.each (jquery.min.js:2)
at displayData (main.js:20)
at .Ne. (main.js:55)
at Object..x.trigger (js?key=AIzaSyBHVJcV0apLoTInbKmW80suUGKCbnXbPR4:102)
at IT.handleEvent (marker.js:40)
at .lg.xg (map.js:31)
at Vx..k.$d (map.js:44)
at Vx..k.Gi (map.js:44)
at Object..x.trigger (js?key=AIzaSyBHVJcV0apLoTInbKmW80suUGKCbnXbPR4:102)
at Qt. (common.js:121)
When I console log the data it is coming back as undefined even though I do see that it's getting data from the emulator app.
There are some dead links on your repos.
Can you please do a more detailed example using the google maps and perhaps also using a VPS.
Thank you.
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.