Coder Social home page Coder Social logo

iobroker.vis-map's Introduction

Logo

ioBroker.vis-map

Number of Installations Number of Installations NPM version Downloads

NPM

Screenshot

Widgets, that can show coordinates on a map. Actually supported only Open Street Maps and Google. To use Google Maps you should get the API Key for Google Maps. You can get it here

Usage

You can bind longitude and latitude apart or just place into longitude the Object ID with the value like following:

  • 7.0001;49.0000 (longitude ; latitude)
  • 7,0001;49,0000 (longitude ; latitude)
  • 7.0001,49.0000 (longitude , latitude)
  • 49.0000,7.0001 (latitude , longitude + swap flag)
  • 49.0000;7.0001 (latitude ; longitude + swap flag)

Changelog

1.1.0 (2024-03-07)

  • (bluefox) Removed dependency to iobroker.vis. Only show the message if vis is not installed

1.0.5 (2024-01-14)

  • (bluefox) Added vis-2 to the restart by installation

1.0.4 (2020-03-18)

  • (bluefox) Small errors were fixed

1.0.3 (2020-01-25)

  • (TA2k) Fix OSM issue with Safari

1.0.2 (2018-07-06)

  • (bluefox) Event click on pins added

1.0.1 (2018-01-08)

  • (bluefox) Fix error if coordinates are empty

1.0.0 (2017-09-26)

  • (bluefox) allow to swap longitude and latitude

0.1.4 (2017-04-28)

  • (bluefox) add traffic layer for google maps

0.1.3 (2016-09-04)

  • (bluefox) fix google map max zoom

0.1.1 (2016-07-17)

  • (bluefox) remove unused files

0.1.0 (2016-07-08)

  • (bluefox) initial checkin

License

Copyright (c) 2016-2024 bluefox [email protected] MIT

iobroker.vis-map's People

Contributors

apollon77 avatar dependabot[bot] avatar germanbluefox avatar instalator avatar ta2k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

iobroker.vis-map's Issues

map widget suddenly disappeared in vis runtime

map widget was fully working all time.
then suddenly it disappeared in VIS runtime. VIS adapter restarted, web adapter restarted, whole iobroker restarted - no change.
map adapter uninstalled completely - no change.

second map widget created in VIS editor, no display in vis runtime

image

thanks for your support

Please check ioBroker.vis-map with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Compatibility check and testing for Node.js 14 and 16

Dear Adapter develop,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/ioBroker/ioBroker.vis-map

I noticed that in the io-package under “restartAdapters” only vis is available. If your widget also runs with vis2, you might want to add vis2 to the list too.

I found vis as “dependencies” in the io package. If your widget also runs with vis2, then remove that.

Thanks,
your automatic adapter checker.

show tracks on map not only locations

i would like to have a possibility to visualize Tracks (list of locations) not only single locations.
if possible in OSM.
i want to follow an object. frequently i get location data (lat/lon) and want to show that in a map. possibly with a button to delete it.

Add history compatibility

I would like to have a way to see the tracked location data from the sql history adapter.
Some sort of either lines or better yet routes between the different places would be nice.

Update stable version in repo from 1.0.5 to 1.1.0

Think about update stable version to 1.1.0

Version: stable=1.0.5 (68 days old) => latest=1.1.0 (15 days old)
Installs: stable=2176 (46.74%), latest=406 (8.72%), total=4656

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!
Do not close this issue manually as a new issue will be created if condition for update still exists
@mcm1957 for evidence

add traffic layer

Hi,

great widget, and already using the Javascipt API of Google Maps which is more extensible than the iframe embedding API. I want to use this for looking at the traffic easily from my tablet before leaving my home, so here's a simple patch for that (sorry, no git patch, just plain old diff).

Maybe you can add it so that I don't need to patch any updated version.

Cheers,
-Stefan

====

--- map.html.1  2016-12-28 10:24:06.344123134 +1030
+++ map.html    2016-12-28 09:46:18.753031542 +1030
@@ -28,6 +28,7 @@
             "SATELLITE":        {"en": "Satellite",             "de": "Satellit",               "ru": "Спутник"},
             "HYBRID":           {"en": "Hybrid",                "de": "Hybrid",                 "ru": "Гибридная"},
             "TERRAIN":          {"en": "Terrain",               "de": "Gelände",                "ru": "Местность"},
+            "traffic":          {"en": "Traffic",               "de": "Verkehrslage",           "ru": "???"},
             "mapTypeId":        {"en": "Map type",              "de": "Kertentyp",              "ru": "Тип карты"},
             "noZoomAndPan":     {"en": "No zoom",               "de": "Kein Zoom",              "ru": "Без зума"},
             "apiKey":           {"en": "Google API Key",        "de": "Google API Schlüssel",   "ru": "Google API ключ"},
@@ -300,6 +301,10 @@
                     panControl:             !options.noZoomAndPan
                 });

+                if(!!options.traffic) {
+                    var trafficLayer = new google.maps.TrafficLayer();
+                    trafficLayer.setMap(map);
+                }
                 var $div = $(divElem);
                 $div.css('border-radius', $div.parent().css('border-radius'));

@@ -359,7 +364,8 @@
                 var options = {
                     mapTypeId:      google.maps.MapTypeId[data.mapTypeId || 'ROADMAP'],
                     hideControls:   data.hideControls || false,
-                    noZoomAndPan:   data.noZoomAndPan || false
+                    noZoomAndPan:   data.noZoomAndPan || false,
+                    traffic:        data.traffic || false
                 };
                 var markers = [];

@@ -455,10 +461,10 @@
         data-vis-type="map"
         data-vis-update-style="true"
         data-vis-prev='<img src="widgets/map/img/Prev_tplGoogleMap.png"></img>'
-        data-vis-attrs="mCount[1]/number,1,20,1;maxZoom[14]/slider,0,30,1;mapTypeId/select,ROADMAP,SATELLITE,HYBRID,TERRAIN;hideControls/checkbox;noZoomAndPan/checkbox;apiKey//onIdChanged;"
+        data-vis-attrs="mCount[1]/number,1,20,1;maxZoom[14]/slider,0,30,1;mapTypeId/select,ROADMAP,SATELLITE,HYBRID,TERRAIN;hideControls/checkbox;noZoomAndPan/checkbox;traffic/checkbox;apiKey//onIdChanged;"
         data-vis-attrs0="group.markers/byindex;markersLon-oid(1-mCount)/id,gps;markersLat-oid(1-mCount)/id,gps;markersImage(1-mCount)/image;markersWidth(1-mCount)/slider,1,100,1;markersHeight(1-mCount)/slider,1,100,1;markersOffsetX(1-mCount)/slider,1,100,1;markersOffsetY(1-mCount)/slider,1,100,1;markersText(1-mCount);markersLabel(1-mCount);markersOpacity(1-mCount)/slider,0,1,0.05;"
 >
     <div class="vis-widget <%== this.data.attr('class') %>" style="overflow: hidden; width: 200px; height: 200px;background-color: none !important" id="<%= this.data.attr('wid') %>">
         <div class="vis-widget-body" id="map_<%= this.data.attr('wid') %>" <%= (el) -> vis.binds.map.googleMap.init(el, this.view, this.data) %>></div>
     </div>
-</script>
\ No newline at end of file
+</script>

Compatibility check to js-controller 4.0

Dear Adapter developer,

with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.

If something is not correct this is logged as 'warning' or 'info' log.

Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!

Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1749

Please close the issue after you checked it.

Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!

fehler anzeige openstreetmap

bekomme immer wieder - nicht nachvollziehbar wann - fogenden fehler im browser log bei dem openstreet widget

Image 1

muss mehrmals browser refresh ausführen, dann kommt die darstellung wieder

Wrong position using underscore in state name

Using adapter version 1.0.4.

I tried to show a position with states created with javascript and it seems that an underscore (_) could not be used:

  • javascript.0.test.pos1 → works fine
  • 0_userdata.0.test.pos1 → doesn't work

Both states contain the same values: The drop is OK, the fire ist wrong

image

Update stable version in repo to 1.0.3

Think about update stable version to 1.0.3

Version: stable=1.0.2 (606 days old) => latest=1.0.3 (30 days old)
Installs: stable=1929 (69.79%), latest=739 (26.74%), total=2764
Click to edit

Anzeige Open Street Maps funktioniert nicht mehr

Die Anzeige von Karten (Open Street Map) funktioniert nach und nach nicht mehr. Nach der Aktualisierung auf iOS 13 verweigert auch Safari auf dem iPad die Anzeige sowohl im Editor als auch bei der Anzeige via VIS:

  • Mit Chrome funktioniert es
  • Mit Internet Explorer, Edge und Safari wird nur noch ein "rosa Fenster" angezeigt

Edge bringt die folgende Fehlermeldung auf der Browserconsole:
SEC7120: [CORS] Der Ursprung "http://10.0.0.210:38082" konnte "http://10.0.0.210:38082" im Access-Control-Allow-Origin response header für die cross-origin image-Ressource bei "http://b.tile.openstreetmap.org/14/8517/5498.png" nicht finden.
Gruß, Ralf

image

Update stable version in repo from 1.0.4 to 1.0.5

Think about update stable version to 1.0.5

Version: stable=1.0.4 (1412 days old) => latest=1.0.5 (15 days old)
Installs: stable=4231 (88.89%), latest=439 (9.22%), total=4760

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!
Do not close this issue manually as a new issue will be created if condition for update still exists
@mcm1957 for evidence

Install Routine nicht für Windows geeignet?

Leider läßt sich vis-map nicht auf meinem ioB Windows System installieren.
npm 14.16.0
jc-controller 4.0.23
Admin 6.2.22
vis-map sowohl als 1.0.2 und 1.0.4 probiert

Der folgende Text ist aus der folgenden Fehlersuche Diskusion aus dem ioB Form hierher kopiert.
https://forum.iobroker.net/topic/37912/position-in-karte-mit-vis-map-o-%C3%A4/37?_=1665645947226

Downgrade auf 1.0.2 und anschließendes Upgrade auf 1.0.4 mit debug durchgeführt. Dabei kam die folgende Meldung.

INFO: Directory "C:/iobroker/GLT/node_modules/iobroker.vis-map/www" was not found! Nothing was uploaded or deleted.

Gucke ich mir aber die Ordnerstruktur an, gibt es das Verzeichnis zwar, aber ohne den "www" Unterordner. Den habe ich jetzt von Hand angelegt und einen erneuten Installationslauf gestartet, mit dem Ergebnis, das die Install Routine immer noch behauptet, das es die Ordnerstruktur nicht gibt und somit nichts installiert oder gelöscht wird.

Damit hat die Debug Meldung sogar recht, denn nach der erneuten Installation, wurde der von mir händisch angelegte "www" Ordner wieder gelöscht.

Sieht so aus, als wenn für Windows User ein Bug in der Installationsroutine drin ist.

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.