Comments (6)
Try adding them in the schema (like the readme examples).
Right now, you cannot pass any google maps options directly. This would be good.
from meteor-autoform-map.
Thanks for your response, however, just tried adding them to the schema but it's not changing the map, other than for the options listed. Cannot get the googleMap options to take. I'll investigate a direct google map API instance and read coordinates from the DB instead. I only need to format a read-only map.
from meteor-autoform-map.
I'm seeing the same issue. In addition if you create an update form the map is greyed out.
from meteor-autoform-map.
Google Maps specific options can be set using rendered
callback.
from meteor-autoform-map.
Thanks. Is there an example anywhere? I've tried setting a callback for rendered with some options but it had no effect - which means I'm likely doing it wrong.
from meteor-autoform-map.
It's mentioned in the readme. Here's example:
Schemas.Locations = new SimpleSchema({
title: {
type: String
},
place: {
type: String,
autoform: {
type: 'map',
afFieldInput: {
rendered: function (map) {
// Add custom options using 'map'
}
}
}
}
});
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
- SearchBox undefined HOT 2
- 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.