<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#if geoChart?has_content> <#-- ================================= Golbal Init ======================================--> <#if geoChart.id?has_content> <#assign id = geoChart.id> <#else> <#assign id = "map_canvas"> <#if geoChart.center?has_content> <#assign center = geoChart.center> <#assign zoom = geoChart.center.zoom> <#elseif geoChart.points?has_content> <#assign center = geoChart.points[0]> <#assign zoom = 15> <#-- 0=World, 19=max zoom in --> <#else> <#-- hardcoded in GEOPT_ADDRESS_GOOGLE, simpler --> <#-- ================================= Google Maps Init ======================================--> <#if geoChart.dataSourceId?has_content> <#if geoChart.dataSourceId?substring(geoChart.dataSourceId?length-6 , geoChart.dataSourceId?length) == "GOOGLE">
${uiLabelMap.CommonLoading}
<#-- ========================== Here we go with different types of maps renderer ===========================--> <#if geoChart.dataSourceId == "GEOPT_GOOGLE"> <#elseif geoChart.dataSourceId == "GEOPT_YAHOO"> <#elseif geoChart.dataSourceId == "GEOPT_MICROSOFT"> <#elseif geoChart.dataSourceId == "GEOPT_MAPTP"> <#elseif geoChart.dataSourceId == "GEOPT_ADDRESS_GOOGLE"> <#elseif geoChart.dataSourceId == "GEOPT_OSM">
<#-- due to https://github.com/openlayers/openlayers/issues/1025 rather use a local version loaded by framework/common/widget/CommonScreens.xml --> <#-- script src="//www.openlayers.org/api/OpenLayers.js"> <#else>

${uiLabelMap.CommonNoGeolocationAvailable}