I recently used RMT feature in gmap based view. I used RMT field callback for generating a content of marker bubble which is displayed after clicking on marker. Problem appeared when i wanted to use same view on different pages. For example when view is located at url 'http://domain.com/' and RMT callback is set to 'ajax/gmapbubble' after click on bubble, ajax request is called to url 'http://domain.com/ajax/gmapbubble', but when the same view is used at url 'http://domain.com/page' after click, request is called to 'http://domain.com/page/ajax/gmapbubble'.
Problem is in the marker.js file when the url is composed as relative url without basepath. I created a patch which just add Drupal.settings.basePath to beginning of the url, this fix lets using same view with same RMT callback on different urls.
| Comment | File | Size | Author |
|---|---|---|---|
| gmap-marker_rmt_field_callback.patch | 666 bytes | reeller_sk |
Comments
Comment #0.0
reeller_sk commentedTypo fix
Comment #1
podarokComment #2
podaroklet`s make it real
commited pushed to 7.x-2.x-dev
thanks!!!