Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Google Maps and Document Types View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 7/5/2012 9:45:47 AM
   
Google Maps and Document Types
I have a custom webpart and a document type that I display on a page. The custom webpart has a search/filter function that displays results in a CMSRepeater. What I would like to do is use the Google Maps Document webpart to display the locations from the CMSRepeater on the map. I don't want to display all the 300+ locations on the map. By default what happens is it displays all 300+ points on the map and I don't wnt that, I only want the results that are bound to the CMSRepeater. Would I have to perform this binding in my custom webpart?

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 7/5/2012 2:59:12 PM
   
RE:Google Maps and Document Types
I believe that you would have to bind the same set of data with all of the filters and settings to both the map and your web part. If you are using paging, that could get a bit difficult.

I haven't tried it, but you could try using a Document Datasource web part with a Universal Pager web part and use them to feed both your custom web part and the map web part.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 7/5/2012 3:01:41 PM
   
RE:Google Maps and Document Types
No paging because of the difficulties so will work on your suggestion and see what I come up with.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/5/2012 3:20:49 PM
   
RE:Google Maps and Document Types
Hi,

Yes, the above post is right. You will need to pass the items dataset from your repeater to the Google maps web part so it will know what to list.
I think this article could be helpful - sharing data between web parts.

Best regards,
Juraj Ondrus