davidbfox
Forum Replies Created
-
We are having almost exactly the same problem on our website. Some differences, though… we never opted to purchase Supermap, so we’re using the built-in map function in Version 2.1.4 of WP-Property. I’ve been avoiding upgrading to the current version for fear it might break something (we have a lot of custom code).
You can see the “development map” on our pages, for example, http://seadrift.com/properties/dp109/
Scroll down towards the bottom…I did get Google Maps API key from Google today and entered it on the Property Settings page. When that didn’t fix the problem, I asked Google for help and they replied:
It seems like the issue is in your plugin. I have checked your website and can see here that the map does not have an API key even if you already added it in the plugin.
Please be informed that an API key is required to use Google Maps Platform products. Failure to use an API key will result in having the daily quota limited to 1. If you exceed this, the Javascript API will return a degraded map with “For development purposes only” error message. For server side requests, this will result to quota error.
Just to set the correct expectation, implementation through wordpress themes/plugins are out of scope for us. Although we would love to help, we lack the knowledge, access to the source code or tools to debug the issues that you encounter with that. Problems with themes/plugins are best to be reported to the ones who developed them.
To explain further on this, the plugin that you are using has a more user-friendly way of adding an API key since you will just put it in an input box and you don’t have to access the codes to add it on your map. However, since that is how the plugin is doing it, there is a possibility that it will not be added in an API key because it was programmed and not done manually.
In a normal JavaScript API implementation, we just add an API key manually in the HTML code like this (we just replace YOUR_API_KEY with our own API key):
<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" type="text/javascript"></script>Then it will surely work because we added the key ourselves. That’s how it’s being done in a normal way. When I checked your website, the script tag looks like this:
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true&ver=4.4.2"></script>——-
Any ideas?
Thanks.
OK
Ok, thank you for your help!
Ah, sorry, I used street_address instead of street_number. Got it to work! Is there a way in the sort to have it sort on multiple fields? For example: sort_by=street_number,location ?
Thanks Maria… I added the street_number attribute, but I do not see it being filled in automatically, even though each house already has the location field and they’re all filled in. Does it only fill it in on new properties? Or is it not actually filled in and the sorting just happens? Or do I really have to go in and add the street number in each field?
Please let me know if there’s anything more I need to do besides creating the field… and if the settings I choose for it are important here.
Well, no, I think that’s what we already have (alphanumeric sorting). What I really want is strict numeric sorting rules applied to an alphanumeric text string so 14 xxx sorts before than 129 xxx (sorting on the value of the address, 14, instead of the string 14).
Thanks Maxim. The problem is that we want to sort by addresses, which by their nature, are a mix of numbers and letters. Is there a command that might force numeric-type sorting with a string that starts with numbers?
Hi Maria,
I’m not sure what you men by “check your domain in your UD account”… I did click on the Check Updates link for Properties and we’re current.
The weird thing was that the Property Gallery images were showing before while editing a single property, but no longer. If I add an image, even if it’s a Featured Image, it now shows up in two places… one where it’s supposed to on the page, and then again below where we have the widget. And there’s now no way to edit the images in the Property Gallery widget.
Forum: Fixing WordPress
In reply to: default embedded youtube video sizeFound this fix that worked for me: http://stackoverflow.com/a/20007094