Questions tagged [gmaps.js]

gmaps.js allows you to use the potential of Google Maps in a simple way. No more extensive documentation or large amount of code.

gmaps.js is a JavaScript API for interacting with Google Maps.
It is a third-party tool built on Google's API.

For more info, see http://hpneo.github.io/gmaps/

79 questions
5
votes
2 answers

How to use fitBounds of GMaps.js

I am using GMaps.js and I have several points to show, I need to show all and set the zoom to the point, I was watching the documentation and requests an array of google.maps.LatLng type. I have the following code for (x in geo){ var item = new…
4
votes
1 answer

gmaps.js mouseover open infowindow

I using gmaps.js to display simple map with some markers, but I want show infowindows with mouseover, I can't find how to do it. My code: map = new GMaps({ scrollwheel: false, div: '#gmap', lat: -12, lng:…
mass043
  • 65
  • 1
  • 7
4
votes
2 answers

Gmaps.js add/remove markers from array

I would like to display or hide some markers when a user click on a checkbox. I'm using Gmaps.js and the code responsible for this is: // Check if the user wants to display points of interest $("#poi").click(function() { var poi_markers = []; …
Cosmin
  • 864
  • 3
  • 16
  • 34
3
votes
1 answer

How to get current zoom level using gmaps.js?

I use this var allMap = new GMaps({ el: '#map', zoom: 14, lat: userLat, lng: userLng, zoom_changed: function(e) { alert(allMap.zoom); } }); but I allways get alerted "14". I want to…
Kārlis Janisels
  • 1,265
  • 3
  • 18
  • 41
2
votes
1 answer

Gmaps Not working with Jupyter Labs - Error: No provider for: jupyter.extensions.jupyterWidgetRegistry

Gmaps works with Jupyter notebook but with a nearly identical setup and with jupyter lab it fails to work. I have installed, done build and have all the basic extensions as I show in screenshots . I have seen one other thread on similar issue but it…
dowjones123
  • 3,695
  • 5
  • 40
  • 83
2
votes
2 answers

Google Map: Remove all Circles

I'm looking for a javascript function that will clear all drawings from my map; something like map.removeMarkers() or map.removeOverlays(), but for shapes - specifically circles. I've seen some answers about how to do this on Android, but I'm…
Lauren
  • 743
  • 3
  • 12
  • 24
2
votes
1 answer

cant make the gmaps.js search functions

i have made this simple app with gmaps.js but i need the search functions like they show it here: http://hpneo.github.io/gmaps/examples/geocoding.html i looked at the source code and all but it aint working.. The search button reloads the…
2
votes
1 answer

Jquery Dialog box with gmaps.js

i'm facing a problem to show google map in a dialog box, the map shows in the dialog box like below i'm using gmaps.js library to show google map and jquery ui for the dialog box Here is my code snippet
osos
  • 2,103
  • 5
  • 28
  • 42
2
votes
1 answer

Gmaps.js - multiple markers with dynamic infoWindow content

I've been reading extensively on the topic of adding dynamically generated infoWindow content to Google Maps API v3 maps, but I'm having trouble finding answers that work for my implementation of the map (I'm using an existing script called…
hmakein
  • 25
  • 2
  • 7
2
votes
3 answers

Gmaps.js Route with Distance

I'm using Gmaps.js api in a little project I'm building. Basically to replicate Google Maps functionality I'm looking to get the route & distance from one address to another (can just be input/form fields). I notice this demo, but it requires…
Alexander Wigmore
  • 3,157
  • 4
  • 38
  • 60
2
votes
1 answer

gmaps.js add DrawingManager control

I have a map using gmaps.js, I want to add a controller to the map that allows the users to draw shapes. I understand this can be done using google maps api as follows: var mapOptions = { center: new google.maps.LatLng(pos.location[0],…
Darth Plagueis
  • 910
  • 3
  • 21
  • 39
1
vote
1 answer

Google Maps geocode() loop to place markers

I have an array with location data with one of the items being an address - ie. "123 Main Street, San Francisco, California". I want to take that address, turn it into coordinates, then use those coordinates to plot a marker on the map. To do this,…
Paul Ruocco
  • 462
  • 3
  • 18
1
vote
1 answer

Display google map or gmaps in python IDE (pycharm)

I'm working on gmaps in python and I want to display the result. import gmaps.datasets gmaps.configure(api_key='***') # Latitude-longitude pairs geneva = (46.2, 6.1) montreux = (46.4, 6.9) zurich = (47.4, 8.5) fig = gmaps.figure() geneva2zurich =…
1
vote
1 answer

Using gmaps.js to place markers from geoJSON file

I need to, using gmaps.js, grab marker information from a .json file and display the marker locations on my local html page. I have been able to do this successfully with the standard Google Maps Platform API using the example given…
Angus
  • 15
  • 4
1
vote
1 answer

Polymer app-drawer left hanging wrapper when closed & content not take up all space

I was trying to build an app with layout like youtube web (www.youtube.com), here is my code :
the.wizard
  • 1,079
  • 1
  • 9
  • 25
1
2 3 4 5 6