Topic on Extension talk:Semantic Maps

95.27.35.167 (talkcontribs)

Semantic Maps (0.6.5,0.6.6) works well on ordinal pages. But there is a problem, when I use it on pages with template.

Template (http://wiki.mephist.ru/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:%D0%9F%D0%BE%D0%B4%D1%80%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_%D0%9D%D0%98%D0%AF%D0%A3) contains:

{{
#display_point: {{{place|}}}
|controls=small
|width=260
|height=260
|zoom=16
}}
[[Coordinates:: {{#geocode:{{{place|}}}}}]]


After I have saved this template - page with it (http://wiki.mephist.ru/wiki/%D0%9D%D0%BE%D0%B2%D0%BE%D0%B2%D0%BE%D1%80%D0%BE%D0%BD%D0%B5%D0%B6%D1%81%D0%BA%D0%B8%D0%B9_%D0%BF%D0%BE%D0%BB%D0%B8%D1%82%D0%B5%D1%85%D0%BD%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9_%D0%BA%D0%BE%D0%BB%D0%BB%D0%B5%D0%B4%D0%B6) has only the grey rectangle.

But, after resaving of page - there is a map.

Resave of template = no map.

I looked at the sourсe code and there is a different: Good page contain additional:

<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAkjW9Z02Wr2DA2cO4Yz7i8xQs3rSWqIDJQozxN2O2ieoEaKtcKBTzQjsYDdYdEUB1FaBPQvU3CfRxAA&hl=ru" type="text/javascript"></script>
<script src="/extensions/Maps/Services/GoogleMaps/GoogleMapFunctions.js?207-0.6.5" type="text/javascript"></script>
<script type="text/javascript">window.unload = GUnload;</script>


It seems that this code should be added on template-recalculation function.

PS: Sorry for my English.

Jeroen De Dauw (talkcontribs)

Damn, that's to bad. Thanks for reporting the issue, I'll look into it.

Reply to "Problem with templates"