Sie sind nicht angemeldet.

Graydon

Profi

  • »Graydon« ist der Autor dieses Themas

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

1

Freitag, 27. Februar 2009, 15:25

request - load spot data from "other" source

I think it would be good if we could setup the map plugin so that spot data could be located in a separate location... such as a different xml file or data node.

I've played around with trying a simple <includeurl ="spotdata.xml" /> within the googlemap plugin structure... but it looks like it's ignored.

The concept would allow large amounts of map data to be split up over different files and loaded as needed... similar in idea to being able to specify at what zoom levels a spot shows up at... but more friendly to large amounts of data... of course, this would mean we'd have to be able to "reload" the map plugin and specify the new spot data as needed.

Graydon

2

Freitag, 27. Februar 2009, 18:18

Hi,

normally it should be possible to put the spots in a external xml and include it,
be sure that there are not additional tags around the <spots>, then it should work,

e.g.

map:

Quellcode

1
2
3
4
<plugin ....>
   <include url="spots.xml" />
   ...
</plugin>


spots.xml:

Quellcode

1
2
<spot ... />
<spot ... />


best regards,
Klaus

Graydon

Profi

  • »Graydon« ist der Autor dieses Themas

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

3

Freitag, 27. Februar 2009, 20:41

OK... that did it... *rolleyes*

I'd left the <krpano version... > </krpano> within the xml file.

In all other cases where I've used the includeurl, the <krpano> elements seemed to be ignored, or skipped over... so I didn't even think to remove that for this... should they NOT be there in all of the other cases as well?

Thank you

4

Samstag, 28. Februar 2009, 01:15

the <krpano> ... </krpano> from a included xml is only ignored for includes from the inside a <krpano> tag,
I made this for easier including other panos

Graydon

Profi

  • »Graydon« ist der Autor dieses Themas

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

5

Montag, 2. März 2009, 22:40

spot nodes as a data source

I've been playing around with some different configurations for my map and spot points... and I can figure out a long way of doing what I'd want... but wished there was a shorter way.

Somewhere on the googlemap plugin development (and associated image map plugin) I believe it would be good to be able to set the spot(s) information as an "attribute" instead of a series of subnodes.... with similar structure as the textfield plugin's html / css attributes.

In the textfield plugin, you can set html="data:htmldata" (same for css) and this allows you to set / change the html data source through an action (i.e. set(plugin[textfield].html,htmldata2) )

Two examples of how I'm looking at using this...

1. I've got a small park that's ~300 acres... on initial load, I'd like the spot data to be for general areas around the park. The park also has numerous hiking / biking trails... and I'd like the user to be able to click on a trail "start point" and have a new set of spot data loaded that is specific to that trail... and when needed, go back to the overview set of general spots.

2. Now we'll look at a large mixed-use development (shopping center) and apply the same concept... one set of data for the general grounds and area... other sets of data for specific areas.

The same concept could be applied to different situations.

I know previously I asked about spots being visible at different zoom levels... and I think that is still a good feature to add... but it wouldn't work in the scenarios I provided because the zoom level would be identical (especially in the park sample with some of the trails being pretty long).

It's not a "show-stopper"... because I know I can remove the map plugin and then load map2 plugin when i go to a different area... but... it's just a longer more intricate process.

Thanks for the consideration.

Graydon

6

Dienstag, 3. März 2009, 00:15

Hi,

there is also an additional way:

you can use actions to change dynamically a set of spots,
e.g.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<action name="set1">
    plugin[maps].resetspots();
    plugin[maps].addspot(spot1, ... );
    plugin[maps].addspot(spot2, ... );
    plugin[maps].addspot(spot3, ... );
    ...
</action>

<action name="set2">
    plugin[maps].resetspots();
    plugin[maps].addspot(spot1, ... );
    plugin[maps].addspot(spot2, ... );
    plugin[maps].addspot(spot3, ... );
     ...
</action>

Graydon

Profi

  • »Graydon« ist der Autor dieses Themas

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

7

Dienstag, 3. März 2009, 00:22

hmmm... I'll have to try that out.

edit added: sorry I missed that documentation about resetspots / addspot.. *rolleyes*

Thanks Klaus

Graydon

Profi

  • »Graydon« ist der Autor dieses Themas

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

8

Samstag, 7. März 2009, 04:27

yeah... that does the trick... now if I could just setup something that took my kml file and pre-populated my addspot(...) *g*

... but for now, just need to work on content structure.

edited and added...

when adding new spots via "addspot"... also need to use the updatespots() function at the end of the action.

*thumbup*

Thanks

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Graydon« (7. März 2009, 05:54)


9

Donnerstag, 23. April 2020, 14:42

Hiking exemple

I tried make a hiking exemple with krpano. You can see it here :

https://www.visites-panoramiques.com/san…nnees/le_vibal/

10

Dienstag, 26. Januar 2021, 16:07

Hello everybody,
I tried to move the spots on an external file but it seems there is something wrong (spots are not loaded).
Any idea / trick / example you can share?

11

Freitag, 4. Juni 2021, 10:15

I tried make a hiking exemple with krpano. You can see it here :

https://www.visites-panoramiques.com/san…nnees/le_vibal/
Hello,

one the best tour i have seen till now. Can you tell there is any solution to bounce map spot?


How we can add search box on google map.


Waiting for reply


Thanks in advnace

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »sakshi« (1. November 2021, 07:39)