Package com.bytebybyte.gwt.leafletjs.client

Source Code of com.bytebybyte.gwt.leafletjs.client.LeafletLibConfigurerEntryPoint

package com.bytebybyte.gwt.leafletjs.client;

import java.util.logging.Level;
import java.util.logging.Logger;

import com.bytebybyte.gwt.leafletjs.client.resources.LeafletLibClientBundle;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.ScriptInjector;

public class LeafletLibConfigurerEntryPoint implements EntryPoint {

  protected Logger logger = Logger.getLogger(LeafletLibConfigurerEntryPoint.class.getName());

  @Override
  public void onModuleLoad() {

    LeafletLibClientBundle bundle = LeafletLibClientBundle.INSTANCE;

    logger.log(Level.INFO, "Injecting leafletjs javascript script element.");

    ScriptInjector.fromString(bundle.leaflet().getText()).setWindow(ScriptInjector.TOP_WINDOW).inject();
  }

}
TOP

Related Classes of com.bytebybyte.gwt.leafletjs.client.LeafletLibConfigurerEntryPoint

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.