Giter VIP home page Giter VIP logo

reactive-maps-example's People

Contributors

dburles avatar

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

Watchers

 avatar  avatar

reactive-maps-example's Issues

Question about flexibility

Hi @dburles, great plugin. I'm currently using this to show the user's geolocation but I'd also like to have a view where it shows all Markers in a collection. Do I need to create a different template file with a different map options reference or is there a way to make this act more like a component– being template agnostic and the data-context changes the behavior? Let me know how you would approach this. Thanks!

ios: "Geolocation Failed: Position retrievel timed out"

Hi,
I am working with the Meteor 1.2 ecosystem. I used the package of yours and working great in Android and Web and also the map loads in the ios (os 10.1.1) perfectly. Now in the loaded map if we do any operation like swipe , pan , zoom then we are getting the error ""Geolocation Failed: Position retrievel timed out". this thing make the whole, scenario very worse.
Some how to any extend we handled this by handling the Google error for error code 3 but still when we pan or swipe or click zoom handler continuously the application in ios make the error as above mentioend..
Thinking that might be Geolocation.latLng(); is making problem and passed static lat , lng but still in the ios things not working smoothly specially after handling the error code swipe makes the map to hang and not working as expected.
I was almost done with the expected tasks but got stuck here at the last in ios as these are normal gesture where we get errors.
mobile config. (There is no effect while we add the below lines or not)
App.accessRule('.google.com/');
App.accessRule('.googleapis.com/');
App.accessRule('.gstatic.com/');
Kindly suggest how to move ahead in the IOS ecosystem.

self. auotrun makes the map to blinck and unexpected recurssive helper calling

Hi,

I have reactive map working great.
I have a new requirement. Have to show markers on the click on some element in page. i am successful it by doing the following
on click event i create the data as per which marker to be reflect and save in session.
this session is checked in the on created of this template and this.autorun makes it to function as desired.
It works great in the Chrome.
But in Firefox the helper is called again and again and the map remain blink. even this behaviour is also noticed in the ios and Android App

Kindly suggest

Close all open infowindows

I have created some markers based on reactive-maps-example code and i am displaying a marker on click this way

  var infoWindow = new google.maps.InfoWindow({   
           content: "content holder.."
            });     
            google.maps.event.addListener(marker, 'click', function () {
                infoWindow.close();
                infoWindow.open(map.instance, marker);
                //console.log(markers);
            });

When i click on a marker,an info window is created but when i click another marker,another infowindow pos up,therefore having multiple infowindows open when i click other markers. I would like to close all open info windows upon clicking a marker.

I have tried the code below but its not working. Anyone has any clue on how to display an infowindow at a time?.

for(var i = 0; i < markers.length; i++){ 
var marker = markers[i]; google.maps.event.addListener(marker, 'click', function () { infoWindow.close(); infoWindow.open(map.instance, marker); //console.log(markers); }); }

Map not loads on Swipe

Map loads fine , loads marker great works fine on pan/swipe but when swipe/pan with some hard stroke the map it doesn't loads and on Xcode it gives the error as "Uncaught Error: Script error.:0:".

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.