New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Maps Integration #136

Closed
jarvisteach opened this Issue Apr 10, 2017 · 6 comments

Comments

Projects
None yet
1 participant

@jarvisteach jarvisteach modified the milestone: 0.07 Apr 19, 2017

jarvisteach added a commit that referenced this issue Apr 22, 2017

Initial GoogleMap widget (#136)
Functions to get GoogleMaps by file or data
Added basic docs & test

Need to build into widget creation
Need to convert to dynamic import
@jarvisteach

This comment has been minimized.

Show comment
Hide comment
@jarvisteach

jarvisteach Apr 22, 2017

Owner

Basic function added for retrieving GoogleMaps images.
Now, need to roll into a widget.

Look into adding built-in, overlaid widgets:

  • zoom in/out
  • change type
  • home
  • (maybe a search?)
Owner

jarvisteach commented Apr 22, 2017

Basic function added for retrieving GoogleMaps images.
Now, need to roll into a widget.

Look into adding built-in, overlaid widgets:

  • zoom in/out
  • change type
  • home
  • (maybe a search?)

jarvisteach pushed a commit that referenced this issue Apr 22, 2017

Richard Jarvis
@jarvisteach

This comment has been minimized.

Show comment
Hide comment
@jarvisteach

jarvisteach Apr 23, 2017

Owner

Have played a bit - can simply place() buttons over the image's label, relative to the size of the label.

Have also added new function .getLocation() to do a lookup on th eIP address, to get start place for maps

Owner

jarvisteach commented Apr 23, 2017

Have played a bit - can simply place() buttons over the image's label, relative to the size of the label.

Have also added new function .getLocation() to do a lookup on th eIP address, to get start place for maps

jarvisteach added a commit that referenced this issue Apr 23, 2017

updates to googleMaps (#136). Including getLocation() function to det…
…ermine currentLocation. Also added <Escape> to AutoEntry (#110). And added new exception() function for logging (#124)
@jarvisteach

This comment has been minimized.

Show comment
Hide comment
@jarvisteach

jarvisteach Apr 23, 2017

Owner

Create a canvas, containing +/-/home button above a drop-down of types.
This should be transparent & borderless.

It can then be placed in any of the four corners, above the image:

  • mapControls.place(rely=1.0, relx=1.0, x=0, y=0, anchor=SE)
Owner

jarvisteach commented Apr 23, 2017

Create a canvas, containing +/-/home button above a drop-down of types.
This should be transparent & borderless.

It can then be placed in any of the four corners, above the image:

  • mapControls.place(rely=1.0, relx=1.0, x=0, y=0, anchor=SE)

jarvisteach added a commit that referenced this issue Apr 25, 2017

Updates to maps (#136) & AutoEntry (#154)
Also, investigation of issue #156 - test script

jarvisteach added a commit that referenced this issue Apr 30, 2017

Added function to addWidget (#156)
Added new function `.addWidget(title, wide, RCS)` to allow placement of
generic widgets. To support this, introduced dictionary of n_widgets
and global keyword WIDGET.

This also involved making `.getContainer()` public & deprecating
`.__getContainer()`

I also switched out the IP locator for one which works better, at least
for my address in London (#136) - and added in a UTF-8 decode
@jarvisteach

This comment has been minimized.

Show comment
Hide comment
@jarvisteach

jarvisteach May 26, 2017

Owner

Issues on python 3.3.6

	Testing GoogleMaps: 3.3
Traceback (most recent call last):
  File "widget_test.py", line 1713, in <module>
    test_googlemap()
  File "widget_test.py", line 1638, in test_googlemap
    app.addImageData("gm2", data)
  File "../appJar/appjar.py", line 4788, in addImageData
    imgObj = self.__getImageData(imageData, fmt)
  File "../appJar/appjar.py", line 4639, in __getImageData
    imgObj = PhotoImage(data=imageData)
  File "/opt/python/3.3.6/lib/python3.3/tkinter/__init__.py", line 3425, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/opt/python/3.3.6/lib/python3.3/tkinter/__init__.py", line 3381, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: no image data for this index
Owner

jarvisteach commented May 26, 2017

Issues on python 3.3.6

	Testing GoogleMaps: 3.3
Traceback (most recent call last):
  File "widget_test.py", line 1713, in <module>
    test_googlemap()
  File "widget_test.py", line 1638, in test_googlemap
    app.addImageData("gm2", data)
  File "../appJar/appjar.py", line 4788, in addImageData
    imgObj = self.__getImageData(imageData, fmt)
  File "../appJar/appjar.py", line 4639, in __getImageData
    imgObj = PhotoImage(data=imageData)
  File "/opt/python/3.3.6/lib/python3.3/tkinter/__init__.py", line 3425, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/opt/python/3.3.6/lib/python3.3/tkinter/__init__.py", line 3381, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: no image data for this index

jarvisteach added a commit that referenced this issue May 30, 2017

Updates for googleMaps (#136)
Two new functions:
* `addGoogleMap()` - creates an image containing a google map
* `setGoogleMap()`- updates the google map
* `__setMapParams()` - configures the map parameters object

These rely on the existing functions for getting map data and setting
location

jarvisteach added a commit that referenced this issue May 30, 2017

Refactored GoogleMap Widget (#136)
Moved GoogleMap functionality into own widget.
There is now a single function `addGoogleMap()`
Which creates and positions the widget in the GUI.
URL classes now use dynamic loading.
@jarvisteach

This comment has been minimized.

Show comment
Hide comment
@jarvisteach

jarvisteach May 30, 2017

Owner

Self-contained widget now implemented.
Minimal widget testing done - need to investigate setters, containers, etc...

Need to add some additional functionality:

  • ability to set start location, zoom level & terrain through appJar
  • ability to query to find current displayed location, zoom level & terrain

Version 2, should have:

  • ability to drop pins
  • ability to export displayed map as image

Version 3, should have:

  • ability to scroll - will require getting lat/long and modifying, bearing in mind zoom level
  • image map to drop pins
Owner

jarvisteach commented May 30, 2017

Self-contained widget now implemented.
Minimal widget testing done - need to investigate setters, containers, etc...

Need to add some additional functionality:

  • ability to set start location, zoom level & terrain through appJar
  • ability to query to find current displayed location, zoom level & terrain

Version 2, should have:

  • ability to drop pins
  • ability to export displayed map as image

Version 3, should have:

  • ability to scroll - will require getting lat/long and modifying, bearing in mind zoom level
  • image map to drop pins

jarvisteach added a commit that referenced this issue May 30, 2017

jarvisteach added a commit that referenced this issue May 30, 2017

Updates to GoogleMaps (#136)
New functions for:
* `searchGoogleMap()`
* `zoomGoogleMap()`
* `setGoogleMapTerrain()`

jarvisteach added a commit that referenced this issue May 30, 2017

GoogleMaps getters & setters (#136)
Implemented new getters & setters for GoogleMaps.
Refactored control placement, so that can be redone if tile size
changes.

jarvisteach added a commit that referenced this issue May 30, 2017

@jarvisteach jarvisteach referenced this issue May 30, 2017

Open

GoogleMap Features #174

1 of 9 tasks complete
@jarvisteach

This comment has been minimized.

Show comment
Hide comment
@jarvisteach

jarvisteach May 30, 2017

Owner

Beta widget now complete.
Have created new issue for version 2/3 features.

Owner

jarvisteach commented May 30, 2017

Beta widget now complete.
Have created new issue for version 2/3 features.

jarvisteach added a commit that referenced this issue May 31, 2017

Tidied up GoogleMaps (#136)
Got rid of passing params around - now everything uses params class
variable.

jarvisteach added a commit that referenced this issue Jun 11, 2017

Fixed issue with null googlemap (#136)
On object instantiation, now check for Null, and deal with it.

Removed some prints from DnD

jarvisteach added a commit that referenced this issue Jun 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment