cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
64 stars 15 forks source link

No option for GoogleV2, so no kml? #921

Closed buddhabackpacker closed 5 months ago

buddhabackpacker commented 6 months ago

I really like this plugin - easy to use and understand. I'm just checking it out now and I saw documentation about using KML files in V2 of Google maps, but there is no option to select V2. Has KML gone away completely from this plugin? Thanks!

cyberhobo commented 5 months ago

The display of KML files works with all the current providers. The problem I hit with this feature is that WordPress started disallowing uploads of KML files, and I never found a reliable method to lift that restriction.

buddhabackpacker commented 5 months ago

You can add mime types to the plugin functions file using the filter 'upload_mimes’. Have you tried that? I haven’t been writing much code for Wordpress in a couple years so they might have changed something, but I’ve used this for plugins before. Thanks for answering so quickly.

On Apr 10, 2024, at 10:31 PM, Dylan Kuhn @.***> wrote:

The display of KML files works with all the current providers. The problem I hit with this feature is that WordPress started disallowing uploads of KML files, and I never found a reliable method to lift that restriction.

— Reply to this email directly, view it on GitHub https://github.com/cyberhobo/wordpress-geo-mashup/issues/921#issuecomment-2048828817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI26LCGXS6NR2QO5VLKU73TY4XYX5AVCNFSM6AAAAABF5E7RM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBYHAZDQOBRG4. You are receiving this because you authored the thread.

cyberhobo commented 5 months ago

Yes, that code is still there (https://github.com/cyberhobo/wordpress-geo-mashup/blob/a8c04b426dcf4b38d974c9683b3997d0672894ee/geo-mashup-ui-managers.php#L588) but I think it stopped working with the Gutenberg editor and I wasn't able to revive it.