You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that Geopoint isn't currently supported, however is there a potential roadmap for adding support? Or does the custom view support allow us to add it ourselves?
Any news on the status of this? Would love to see all Firestore data types supported. Could somebody please share a code snippet that would be required to add support for Firestore geopoints? Thanks!
Ok, thanks for your reply. Could you share how the workaround you suggested, using custom fields would work? Something really simple, like giving the user a text field where comma separated latitude,longitude can be entered would work. Thanks!
@fgatti675 hm ok. I tried a custom field implementation as per your link for the type GeoPoint. However, in the CMS, I still get the error "Currently the field geopoint is not supported". Any idea what I'm doing wrong?
Code:
@singhvedant111 – I like your map implementation. I ended up working something out based on yours that's a simple text input, accepting a comma separated latitude, longitude.
I'm having a bit of trouble implementing this custom field. The implementation complains that the field is not supported.
Currently I have fallen back to using the string dataType and mapping in the component.
Are custom fields not supported? How does one use a different datatype?
Activity
fgatti675 commentedon Aug 5, 2021
Hi @TheAussieStew
Geopoint support is currently not in the roadmap.
In any case, you should be able to implement your own custom field supporting it :)
https://firecms.co/docs/entities/custom_fields
Let me know if you have an implementation so we can try to merge it into the library
kongwei-y commentedon Sep 15, 2021
Sounds good!
fgatti675 commentedon Nov 23, 2021
I am marking this feature as a good first issue.
It can be implemented in the same way that a developer would implement a "custom field": https://firecms.co/docs/entities/custom_fields
That means that it is not necessary to develop the feature in the source code (though that would be the best!)
SKLn-Rad commentedon Jun 4, 2022
Anyone manage to get a working implementation before I go and make one myself tonight? Worth an ask :)
fgatti675 commentedon Jun 5, 2022
H @SKLn-Rad, as far as I know this has not been implemented yet!
It would be great if you can share it when you are done so we can add it to the core
jbxbergdev commentedon Dec 23, 2022
Any news on the status of this? Would love to see all Firestore data types supported. Could somebody please share a code snippet that would be required to add support for Firestore geopoints? Thanks!
fgatti675 commentedon Dec 25, 2022
This feature is not planned at this moment.
We are happy to merge PRs or to do sponsored developments!
jbxbergdev commentedon Dec 26, 2022
Ok, thanks for your reply. Could you share how the workaround you suggested, using custom fields would work? Something really simple, like giving the user a text field where comma separated
latitude,longitudecan be entered would work. Thanks!fgatti675 commentedon Dec 26, 2022
Hi @jbxbergdev
You have an example on how to implement a custom field here:
https://firecms.co/docs/properties/custom_fields
jbxbergdev commentedon Dec 29, 2022
@fgatti675 hm ok. I tried a custom field implementation as per your link for the type GeoPoint. However, in the CMS, I still get the error "Currently the field geopoint is not supported". Any idea what I'm doing wrong?
Code:
fgatti675 commentedon Dec 30, 2022
Hi @jbxbergdev did you also link the field in your corresponding property?
{ dataType: "geopoint", name: "...", Field: GeopointField}jbxbergdev commentedon Jan 2, 2023
@fgatti675 ah yeah, I did. I'll update the code snippet. So in the create/edit view the field is showing the error message.
singhvedant111 commentedon Apr 6, 2023
Here is a working implementation. I have made the following react jsx element.
This can be used in a custom field as follows:
This can be added to your collection as follows:
fgatti675 commentedon Apr 6, 2023
Awesome! Think you could submit a PR?
You can start by checking how other fields are integrated in this file:
form_field_configs.tsx
singhvedant111 commentedon Apr 6, 2023
Sure, I'll try and do that sometime this week @fgatti675 .
lukecarbis commentedon Jun 13, 2023
@singhvedant111 Did you ever get around to this?
lukecarbis commentedon Jun 15, 2023
@singhvedant111 – I like your map implementation. I ended up working something out based on yours that's a simple text input, accepting a comma separated latitude, longitude.
BartlomiejLewandowski commentedon Nov 25, 2023
I'm having a bit of trouble implementing this custom field. The implementation complains that the field is not supported.
Currently I have fallen back to using the string dataType and mapping in the component.
Are custom fields not supported? How does one use a different datatype?