Forum
Problem with Map -- same map shows up for all map locations on Page
Health check
PHP 5.4.45 version is okay, but a little out of date. Consider updating soon. MySQL 5.6.36-cll-lve is up to date Image processing available Summary information
Perch: 3.0.9, PHP: 5.4.45, MySQL: 5.6.36, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (3.0.9), assets (3.0.9), categories (3.0.9), perch_events (1.9.5) App runtimes: <?php $apps_list = [ 'perch_events', ]; PERCH_LOGINPATH: /calendar_only PERCH_PATH: /home/g70r57e28/public_html/calendar_only PERCH_CORE: /home/g70r57e28/public_html/calendar_only/core PERCH_RESFILEPATH: /home/g70r57e28/public_html/calendar_only/resources Image manipulation: GD Imagick PHP limits: Max upload 256M, Max POST 8M, Memory: 256M, Total max file upload: 8M F1: 3b606135b33e6a102526838f4152a807 Resource folder writeable: Yes SCRIPT_NAME: /calendar_only/core/settings/diagnostics/index.php REQUEST_URI: /calendar_only/core/settings/diagnostics/ DOCUMENT_ROOT: /home/g70r57e28/public_html HTTP_HOST: visitfairfieldcountyoh.org
I think my template may be the problem but I am not sure how to fix it. I need to set it to add multiple venues to the page but the map takes the first map and repeats it even though the address is correctly recorded in each of the other entries.
<perch:before><dl ></perch:before><dt style="font-size: 1.275em;font-weight:bold;"><img src="<perch:content type="image" id="image" label="Image" width="200" />" alt="<perch:content type="text" id="alt" label="Description" required="false" help="e.g. Photo of MD John Smith with his best wig on" title="true" />" /><br /><a href="<perch:content id="link" type="text" label="Link" />"><perch:content id="name" type="text" label="Name" /></a></dt><dd ><div style="text-align:left;"><perch:content id="address" type="text" label="Address" /> <button class="button small" type="button" data-toggle="example-dropdown">MAP</button><div class="dropdown-pane" id="example-dropdown" data-dropdown><span style="font-size:18px;"><perch:content id="map" type="map" label="Address" width="400" height="300" zoom="15" /></span> </div></div><a href="tel:<perch:content id="phone" type="text" label="Phone" />"><perch:content id="phone" type="text" label="Phone" /></a><br /></dd><perch:after></dl></perch:after> <perch:content id="textb" type="textarea" label="Paragraph Description" html="true" editor="ckeditor" imagewidth="640" imageheight="480" />
I have this so I can add multiple venues to the page. Is there a way to do this that adds multiple venues to the map and does not add the map just once but all the correct maps. See page https:// visitfairfieldcountyoh.org / hotels-motels-lancaster .php so you can see for yourself what is going on.
There appear to be 5 different maps specified on the page. Have you tried without the JavaScript?
I am not sure how to turn the JavaScript off.
I think your problem is most likely the JavaScript, so unless you find something that suggests otherwise I'll leave it with you.
You did not answer my question, where do I turn off the map javascript so I get a static map?
There are two .js files that effect the maps maps.js and public_maps.min.js which javascript are you talking about and beyond putting in a blank file. I don't know how to turn it off.
What am I supposed to do.
Sorry, I can't see where you asked that question. You can usually disable JavaScript in your browser dev tools. However, I don't think the issue is my JavaScript, I think it's yours. Remove your JavaScript, or make a version of the page without it, and see if you're getting the maps you're expecting.