Comments (2)
Situatution:
I am using dburles:googl-maps
so display different maps on my app.
I am also using yogiben:autoform-map
to let user input their location in a form.
Problem:
I was calling GoogleMaps.load()
every time a map template was rendered with onRendered
. Somehow this was preventing the GoogleMaps.load({libraries:'places'})
inside yogiben:autoform-map
to load the library properly.
Solution:
I removed the GoogleMaps.load()
from the map templates and placed it in:
Meteor.startup(function() {
GoogleMaps.load({
libraries: 'places'
});
});
This way I ensure that the libraries that I need are included.
Can anyone think of a better solution?
from meteor-autoform-map.
+1
from meteor-autoform-map.
Related Issues (20)
- autocomplete without map HOT 1
- Any plans to support mongo geo query style fields? HOT 2
- rendered function has no gmap parameter HOT 6
- Google Maps package
- [enhancement ] Are you planning to add google autocomplete input field ? HOT 2
- map not render HOT 3
- [enhancement] address field HOT 5
- Options on afQuickField
- Bro Leaflet please! HOT 1
- Fill address HOT 1
- Is it supported with Meteor 1.2.1 ?Also can you put up a demo link
- Get current location doesn't work. HOT 6
- Difference between declaration and real state HOT 1
- google map does not render un error in console
- Google Maps API error: MissingKeyMapError HOT 1
- Is there a way to reactively listen for changes on the marker position?
- Not compatible with AutoForm v6.0 HOT 3
- Touch events do not work from mobile
- Update to Autoform 6.2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-autoform-map.