Giter Club home page Giter Club logo

gmap's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gmap's Issues

Markers don´t work in IE

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.7.1.min.js" type="text/javascript"></script> <script src="jquery.gmap.js" type="text/javascript"></script> <script> $(function(){ $("#map").gMap({ latitude: "fit", longitude: "fit", zoom: "fit", markers: [{ latitude: 51.5282128, longitude: 7.02943, }] }); }); </script>

Works fine in FireFox and Safari but IE 7,8,9 don´t show a map or any JS-Error. Without the markes it works in IE too.

[enhancement] Add missing bower.json.

Hey, maintainer(s) of fridek/gmap!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library fridek/gmap is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "fridek/gmap",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Problem with infowindowanchor

It seems that the infowindowanchor property is initialized with (9,2) and remains always the same, even if you set other values they're not populated.

In my case the anchor is always on top of the graphic icon / pin, not at the place where the pin points at.

Markers are not emptied after removeAllMarkers

I noticed that the "data('gmap').marker" value is not emptied after a call to removeAllMarkers in the 3.1.0 version.
I am not sure whether it really is a bug or a feature (for performance improvements), that is why I prefered creating a ticket instead of a pull request.

To reproduce

  • add 10 markers to a map
  • call $map.gMap('removeAllMarkers');
  • run console.log($map.data('gmap').markers.length);

What happens

  • it displays "10" for the markers length

Expected

  • it should display "0", meaning that the markers variable must be an empty array

Fix

  • in the removeAllMarkers function, replace the last line "markers[]" with "this.data('gmap').markers = [];"

autoZoom not working after AJAX load

When i add markers after an AJAX call, the markers get added nicely but the autoZoom function doesn´t bring them in view. How can i fix this? I also tried your 3.3.0 alpha version but no improvement :(

Here is my AJAX call:

$('form').submit(function() {
     $.ajax({
    url: 'process.php',
    dataType: 'json',
    data: $(this).serialize(),
    success: function( data ) {
        console.log( 'Sample of data:', data );
        //window.console.log('You: '+youarehere.address);
        map.gMap("removeAllMarkers");
        //map.gMap("addMarker", youarehere);
        map.gMap("addMarkers", data);

        map.gMap('setZoom',"fit");

    }// success end
  }); // ajax end
  return false;
});// submit end

and here the gmap init

map.gMap({
    markers: [
        latitude: 51.9243269,
        longitude: 7.5146842,
        html: 'Dülmener Straße 33, 48163 Münster, Germany',
        ],
    zoom: "fit",
    //latitude: "fit",
    //longitude: "fit",
    log: true
}); // gmap end

zoom: "fit" not working when only passing addresses

var map = $("#map_canvas");

map.gMap({
markers: [
{
address: "huron, ohio 44839"
},
{
address: "sandusky, ohio 44870"
},
{
address:" cincinatti, ohio"
}

    ],
    zoom: "fit"

// latitude: "fit",
// longitude: "fit",
});

wondering why if i pass in lat/long it zooms correctly, but if addresses are passed in it breaks and only zooms to the last level.

is there a workaround for this beyond passing the address to the geocoder and plugging the lat/long back into the array?

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.