Changeset 14181 for extensions/rv_gmaps/trunk/map_data.php
- Timestamp:
- Apr 16, 2012, 5:16:27 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/map_data.php
r13092 r14181 91 91 rvo( '{' ); 92 92 93 rvo( "\ntitle: 93 rvo( "\ntitle:".jsgm_str( strip_tags(trigger_event('render_element_description', $page['title']) ) ) ); 94 94 rvo( ",\n" ); 95 95 96 rvo( "page_url: 96 rvo( "page_url:".jsgm_str( duplicate_index_url( array('start'=>0) ) ) ); 97 97 rvo( ",\n" ); 98 98 99 rvo( "blowup_url: 99 rvo( "blowup_url:".jsgm_str( rvm_duplicate_blowup_url( array('start'=>0) ) ) ); 100 100 rvo( ",\n" ); 101 101 102 rvo( "kml_url: 102 rvo( "kml_url:".jsgm_str( rvm_duplicate_kml_index_url( array('start'=>0, 'flat'=>1) ) ) ); 103 103 rvo( ",\n" ); 104 104 105 rvo( "nb_items: 105 rvo( "nb_items:".count($page['items']) ); 106 106 rvo( ",\n" ); 107 107 108 rvo( "bounds: 108 rvo( "bounds:" ); 109 109 if ( isset($cm) ) 110 110 rvo( jsgm_bounds( $cm->bounds ) ); … … 114 114 115 115 116 rvo( "\nnb_clusters: 116 rvo( "\nnb_clusters:".count($clusters) ); 117 117 rvo( "," ); 118 118 119 rvo( "\nimage_clusters: 119 rvo( "\nimage_clusters:[\n" ); 120 120 $i=0; 121 121 foreach( $clusters as $c ) … … 123 123 if ($i) rvo( ",\n\n" ); 124 124 rvo( "{" ); 125 rvo( 'position: 125 rvo( 'position:'. jsgm_position( bounds_center($c->bounds) ) ); 126 126 rvo( ",\n" ); 127 rvo( 'bounds: 127 rvo( 'bounds:'. jsgm_bounds( $c->bounds ) ); 128 128 rvo( ",\n" ); 129 rvo( 'nb_items: 129 rvo( 'nb_items:'.count($c->items) ); 130 130 rvo( ",\n" ); 131 131 132 rvo( 'blowup_url: 132 rvo( 'blowup_url:"'.rvm_duplicate_blowup_url(array('box'=>$c->bounds), array('start') ). '"' ); 133 133 rvo( ",\n" ); 134 134 … … 138 138 $c->items = array_slice($c->items, 0, $max_per_cluster); 139 139 } 140 rvo( 'items: 140 rvo( 'items:[' ); 141 141 for ($j=0; $j<count($c->items); $j++) 142 142 { … … 157 157 if ($j) rvo( "," ); 158 158 rvo( "{" ); 159 rvo( "tn: 160 rvo( ",name: 161 rvo( ",comment: 162 rvo( ",page_url: 159 rvo( "tn:".jsgm_str( get_thumbnail_url( $img ) ) ); 160 rvo( ",name:".jsgm_str( trigger_event('render_element_description', $title) ) ); 161 rvo( ",comment:".jsgm_str( trigger_event('render_element_description', $img['comment']) ) ); 162 rvo( ",page_url:".jsgm_str( $page_url ) ); 163 163 rvo( "}" ); 164 164 }
Note: See TracChangeset
for help on using the changeset viewer.