dburles / reactive-maps-example Goto Github PK
View Code? Open in Web Editor NEWExample Meteor application demonstrating a reactive Google map
Home Page: http://meteorcapture.com/how-to-create-a-reactive-google-map
Example Meteor application demonstrating a reactive Google map
Home Page: http://meteorcapture.com/how-to-create-a-reactive-google-map
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!
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.
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
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 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:".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.