Skip to content

GMPLOT Pins into buttons #192

@spyderkavin

Description

@spyderkavin

Can you turn GMPLOT pins into a button?

# from pprint import pprint
import googlemaps
import os
import gmplot as gm
apikey = ''
map_client = googlemaps.Client(API_KEY)

address = '1285 Escuela Pkwy, Milpitas, CA' 
response = map_client.geocode(address)
lat = response[0]['geometry']['location']['lat']
lng = response[0]['geometry']['location']['lng']
print(lat, lng)

gmap = gm.GoogleMapPlotter(37.4499145,-121.9050326, 14, apikey=apikey)

gmap.marker(37.4507577,-121.9005336, color='red')
gmap.draw('map.html')
print(os.getcwd())

Here is my code rn...
I want to turn the red pin into a button. Can anyone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions