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
1
vote
1 answer

Gmaps load when click two time on tab li in jquery

I use a gmaps in a tab of modal for show google map. In my code when click on
  • of tab, load gmap again. but i see i must click two time on tab for load and show google map. my jquery code: $('#LiGoogleMapEditThird').click(function() { …
  • narges
    • 681
    • 2
    • 7
    • 26
    1
    vote
    2 answers

    draggable Marker gmaps.js get latitude and longitude

    I am using the Gmaps.js script. I can not find how to get latitude and longitude if I move Marker with draggable option map = new GMaps({ div: '#map', lat: -24.836536, lng: -65.393051, draggable: true, dragend: function(e) { …
    Dario
    • 417
    • 4
    • 17
    1
    vote
    0 answers

    GeoJson polygons from MVC controller to gmaps.js through ajax

    I'm trying to send a few polygons from a controller to a ajax request on the view. I'm using gmaps.js on client side. And I'm trying to follow the GeoJson specs for polygon object. Here is my raw object: [ { "type" : "POLYGON", …
    DoomerDGR8
    • 4,840
    • 6
    • 43
    • 91
    1
    vote
    0 answers

    With gmaps.js - how can I put the infoWindow into a div outside the map?

    I am building a page with 1500+ markers on a Google Map, using the excelent gmaps.js. Something I can't figure out (being a bit of a javascript newb) is how I can display my infoWindow content in a sidebar div outside the Google Map when a marker is…
    1
    vote
    1 answer

    How can i consume gmaps.js in Angular 2 using webpack?

    I would like to consume the gmaps.js external library in an Angular 2 application. I'm usng Webpack for loading my modules. Could anyone please help me how i could that? Thank you in advance...
    1
    vote
    2 answers

    PHP Array to jQuery - gmaps.js not creating marker

    I'm trying to use a PHP Array to get long and lat values from a database, and put these onto a map using gmaps.js. So far, I have created the array in PHP, and echoed this onto my page to confirm the correct values are being displayed. $data =…
    1
    vote
    2 answers

    Cant define data. why is this?

    I'm working on a small funny bit of code and i'm stuck. on line 66 in the JS file. it cant define data... it is in the scope right? please help me. http://codepen.io/shiva112/pen/JGXoVJ function PlaceMarkers(data){ for (i = 0; i < data.length -…
    1
    vote
    1 answer

    Circles on Google Maps API

    I currently have markers for all of my subcontractors on a map. I have a variable for each row in the database containing the number of miles they are willing to travel. How would I add the circles that cover that area?